Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- JAVASCRIPT -->
- {block:IfUseCustomfonts}
- <script type="text/javascript">
- WebFontConfig = {
- google: { families: [ {block:ifCustomFont1}'{text:Custom Font 1}'{/block:ifCustomFont1}{block:ifCustomFont2}, '{text:Custom Font 2}'{/block:ifCustomFont2}{block:ifCustomFont3}, '{text:Custom Font 3}'{/block:ifCustomFont3} ] }
- };
- (function() {
- var wf = document.createElement('script');
- wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
- '://ajax.googleapis.com/ajax/libs/webfont/1.0.31/webfont.js';
- wf.type = 'text/javascript';
- wf.async = 'true';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(wf, s);
- })();
- </script>
- {/block:IfUseCustomfonts}
- <script type="text/javascript">
- var tessellate = {
- // search: '{lang:Search}',
- analytics: {block:ifGoogleAnalyticsID}true{/block:ifGoogleAnalyticsID}{block:ifNotGoogleAnalyticsID}false{/block:ifNotGoogleAnalyticsID},
- infscr: {block:ifInfiniteScroll}true{/block:ifInfiniteScroll}{block:ifNotInfiniteScroll}false{/block:ifNotInfiniteScroll},
- animations: {block:ifEnableAnimations}true{/block:ifEnableAnimations}{block:ifNotEnableAnimations}false{/block:ifNotEnableAnimations},
- fadein: {block:ifFadeInFirstPage}true{/block:ifFadeInFirstPage}{block:ifNotFadeInFirstPage}false{/block:ifNotFadeInFirstPage}
- }
- </script>
- {block:ifGoogleAnalyticsID}<script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', '{text:Google Analytics ID}']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>{/block:ifGoogleAnalyticsID}
- {block:IndexPage}<script type="text/javascript" src="http://assets.tumblr.com/javascript/tumblelog.js"></script>{/block:IndexPage}
- <script type="text/javascript" src="http://static.tumblr.com/eatauj5/aBHly2e80/jquery-1.7.1.min.js"></script>
- <script type="text/javascript" src="http://zero8zero5.com/assets/layers3.js"></script>
- <!-- <script type="text/javascript" src="http://static.tumblr.com/oanhd8m/g0Ombfkue/layers2.js"></script> -->
- <script>
- $ = jQuery.noConflict();
- $(function () {
- var a = $("#content"),
- o = a.children(),
- l = $("#loading"),
- k = Modernizr.csstransitions,
- p = tessellate.animations,
- f = tessellate.fadein,
- d = tessellate.search,
- n = window.location,
- j = n.href.match(/http.*page\//),
- i = n.href.match(/page\/(\d*)/),
- e = parseInt((i && i[1]) ? i[1] : 1),
- m = function (r, q) {
- if (q) {
- a.masonry("appended", r)
- } else {
- a.masonry({
- columnWidth: {text:Index Column Width}, // Changes to column width (here) should be accompanied by changes to index post padding and/or margins
- itemSelector: "div.post",
- isFitWidth: true
- })
- }
- r.removeClass("invisible");
- if (p && (f || q)) {
- if (k) {
- r.addClass("opaque")
- } else {
- r.css({
- opacity: 0
- }).animate({
- opacity: 1
- }, 400)
- }
- }
- }, h = function (r, q) {
- if (!a.find(q).length) {
- return
- }
- if (p && !tessellate.mobile) {
- a.on("mouseenter mouseleave", r, function (s) {
- if (s.type === "mouseenter") {
- $(this).find(q).stop(true, true).slideDown(200)
- } else {
- $(this).find(q).stop(true, true).slideUp(200)
- }
- })
- }
- }, g = function (r) {
- var q = r.filter(".audio").find("div.the-audio");
- if (!q.length) {
- return
- }
- q.find("embed").attr({
- wmode: "opaque"
- });
- q.removeClass("hideflash")
- }, b = function (u) {
- var t = u.filter(".video").find("div.the-video"),
- s, q = t.length,
- w, v, r = t.outerWidth();
- if (!q) {
- return
- }
- for (s = 0; s < q; s++) {
- w = t.eq(s);
- v = w.find("embed, iframe");
- if (v.length) {
- if (v.is("embed")) {
- v.attr({
- wmode: "opaque"
- })
- }
- v.height(Math.round(v[0].height * r / v[0].width)).width(r)
- }
- w.removeClass("hideflash")
- }
- }, c = {
- fadein: function () {
- l.stop(true, true).fadeIn(400)
- },
- fadeout: function () {
- l.stop(true, true).fadeOut(400)
- }
- };
- $("#search").children().on({
- focus: function () {
- if (this.value === d) {
- $(this).addClass("typing").val("")
- }
- },
- blur: function () {
- if (!this.value) {
- $(this).removeClass("typing").val(d)
- }
- }
- });
- if (!o.length || $("#no-results").length) {
- return
- }
- g(o);
- b(o);
- if ($("#index").length) {
- if (f) {
- c.fadein()
- }
- if (!k) {
- h("div.post", "div.meta")
- }
- o.find("img").not(".the-album-art").imagesLoaded(function () {
- m(o, false);
- if (f) {
- c.fadeout()
- }
- if (tessellate.infscr) {
- a.infinitescroll({
- debug: false,
- navSelector: "#foot-nav",
- nextSelector: "li.next a",
- itemSelector: "div.post",
- loading: {
- img: "",
- finishedMsg: "",
- msgText: ""
- },
- state: {
- currPage: e
- },
- pathParse: (j) ? [j, ""] : null
- }, function (q) {
- var u = $(q),
- t, s, r;
- if (tessellate.analytics) {
- t = n.pathname;
- s = t.match(/\/.*page\//);
- if (s) {
- r = s
- } else {
- r = (t + (t.charAt(t.length - 1) === "/" ? "page/" : "/page/"))
- }
- r += (++e);
- _gaq.push(["_trackPageview", r])
- }
- a.infinitescroll("pause");
- c.fadein();
- $.when(u.addClass("invisible infscr").filter(".audio, .video").flashFix(), u.find('.photo-slideshow').pxuPhotoset(), u.find("img").not(".the-album-art").imagesLoaded()).always(function () {
- g(u);
- b(u);
- m(u, true);
- c.fadeout();
- a.infinitescroll("resume");
- a.infinitescroll("scroll")
- })
- });
- a.infinitescroll("scroll");
- $().UItoTop({
- text: "",
- easingType: "easeOutQuad"
- })
- }
- })
- } else {
- o.find("li.tag").last().find("span").remove();
- /*if (o.hasClass("photoset")) { o.find("div.the-photoset").resizePhotoset({ selector: "span.photoset-image" }); h("span.photoset-image", "span.caption-outer") } else */
- {
- if (o.hasClass("audio")) {
- o.find("ul.audio-meta").not(":has(li)").remove()
- }
- }
- }
- });
- </script>
- <!-- begin fancybox code -->
- {block:IfUseFancyboxforImages}
- <script type="text/javascript" src="http://static.tumblr.com/jxydchg/hwklxo929/jquery.fancybox.pack.js"></script>
- <script>
- $(document).ready(function() {
- $('.photo-slideshow').pxuPhotoset({
- // options go here
- }, function() {
- // callback
- }); // end photoset code
- $(".fancybox").fancybox({
- closeBtn:false,
- loop:false,
- margin:{text:Fancybox Margin},
- padding:{text:Fancybox Padding},
- wrapCSS:"fancybox-custom",
- helpers : {
- overlay : {
- opacity : '{text:Opacity Fancybox}',
- css : {
- 'background-color' : '{color:Fancybox Overlay}'
- }
- },
- title: null
- }
- });
- });
- </script>
- {/block:IfUseFancyboxforImages}
- <!-- end fancybox code -->
- <script>if($.browser.msie){
- $('.post').live('mouseenter',function() {
- $(this).addClass('hover');
- });
- $('.post iframe').live('hover',function() {
- $(this).parents(".item").addClass('hover');
- });
- $(".post").live('mouseleave',function() {
- $(this).removeClass('hover');
- });
- }</script>
- <script>
- function goToPage(){
- var page=document.getElementById("jump-page").value; // value of input box
- page=page*1; // ensures page is numeric only
- location.href='/page/'+page; // redirect to new url
- }
- </script>
- <script>
- // $ = jQuery.noConflict();
- $('.toggle-notes').toggle(
- function() {
- $('.notes').slideDown('400');
- $(this).html('Hide Notes');
- },
- function() {
- $('.notes').slideUp('200');
- $(this).html('Show Notes');
- }
- );
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement