Difference between revisions of "Template:METU HS Ankara/JS/TimelineINIT"

 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
                 width: '100%',
 
                 width: '100%',
 
                 height: '600',
 
                 height: '600',
                 source: 'http://kreatinmedya.com/demo/igem2018/assets/js/timeline/source/timeline.json',
+
                 source: "https://static.igem.org/mediawiki/2018/2/2f/T--METU_HS_Ankara--json.txt",
 
                 embed_id: 'timeline-embed',              //OPTIONAL USE A DIFFERENT DIV ID FOR EMBED
 
                 embed_id: 'timeline-embed',              //OPTIONAL USE A DIFFERENT DIV ID FOR EMBED
 
                 start_at_end: false,                          //OPTIONAL START AT LATEST DATE
 
                 start_at_end: false,                          //OPTIONAL START AT LATEST DATE
Line 20: Line 20:
 
                 lang: 'en',                          //OPTIONAL LANGUAGE
 
                 lang: 'en',                          //OPTIONAL LANGUAGE
 
                 maptype: 'HYBRID',                  //OPTIONAL MAP STYLE
 
                 maptype: 'HYBRID',                  //OPTIONAL MAP STYLE
                 css: 'https://2018.igem.org/Template:METU_HS_Ankara/CSS/TimelineCSS?action=raw&ctype=text/css',    //OPTIONAL PATH TO CSS
+
                 css: "https://2018.igem.org/Template:METU_HS_Ankara/CSS/TimelineCSS?action=raw&ctype=text/css",    //OPTIONAL PATH TO CSS
                 js: 'https://2018.igem.org/Template:METU_HS_Ankara/JS/TimelineJS?action=raw&ctype=text/javascript'   //OPTIONAL PATH TO JS
+
                 js: "https://2018.igem.org/Template:METU_HS_Ankara/JS/TimelineJS?action=raw&ctype=text/javascript"   //OPTIONAL PATH TO JS
 
             });
 
             });
 
         }
 
         }
 
     })
 
     })
 
}(jQuery));
 
}(jQuery));

Latest revision as of 00:18, 4 October 2018

(function ($) {

   "use strict";
   $(document).ready(function () {
       // Timeline JS // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       if ($("#timeline-embed").length > 0) {
           createStoryJS({
               width: '100%',
               height: '600',
               source: "https://static.igem.org/mediawiki/2018/2/2f/T--METU_HS_Ankara--json.txt",
               embed_id: 'timeline-embed',               //OPTIONAL USE A DIFFERENT DIV ID FOR EMBED
               start_at_end: false,                          //OPTIONAL START AT LATEST DATE
               start_at_slide: '2',                            //OPTIONAL START AT SPECIFIC SLIDE
               start_zoom_adjust: '2',                            //OPTIONAL TWEAK THE DEFAULT ZOOM LEVEL
               hash_bookmark: false,                           //OPTIONAL LOCATION BAR HASHES
               debug: false,                           //OPTIONAL DEBUG TO CONSOLE
               lang: 'en',                           //OPTIONAL LANGUAGE
               maptype: 'HYBRID',                   //OPTIONAL MAP STYLE
               css: "https://2018.igem.org/Template:METU_HS_Ankara/CSS/TimelineCSS?action=raw&ctype=text/css",     //OPTIONAL PATH TO CSS
               js: "https://2018.igem.org/Template:METU_HS_Ankara/JS/TimelineJS?action=raw&ctype=text/javascript"    //OPTIONAL PATH TO JS
           });
       }
   })

}(jQuery));