PageSourceSearch

https://tednash.com/wp-content/themes/amplify/assets/dist/js/main.js

js tednash.com collected 2026-09-25 20:50:57 UTC 4,653 bytes, 1 lines download raw bytes

1function Play(a){var b=$("#"+a);if(0==status||2==status){var c=$("#"+a).attr("src");0==status&&b.attr("src",c),b[0].play(),$("#play").attr("class","glyphicon glyphicon-pause aligned"),status=1}else 1==status&&(b[0].pause(),$("#play").attr("class","glyphicon glyphicon-play aligned"),status=2)}function Restart(a){$("#"+a).prop("currentTime",0)}function VolumeUp(a){var b=($("#"+a),$("#"+a).prop("volume")+.1);b>1&&(b=1),$("#"+a).prop("volume",b)}function VolumeDown(a){var b=($("#"+a),$("#"+a).prop("volume")-.1);b<0&&(b=0),$("#"+a).prop("volume",b)}var linkMenu=!1,scrollTo=function(a){linkMenu=!0,$("html, body").animate({scrollTop:$(a).offset().top},1e3,function(){window.location.hash=a,linkMenu=!1})},masonryExec=function(){$(window).width()<768?$("section.gallery .grid").masonry({itemSelector:".grid-item",columnWidth:$(".container").width()/2}):$("section.gallery .grid").masonry({itemSelector:".grid-item",columnWidth:$(".container").width()/3})},scroll=function(){$(window).scroll(function(){var a=$(window).scrollTop();height=$(".intro").height(),a>height-160?$("header").addClass("mini"):$("header").removeClass("mini"),$("body").is(".landing")&&$("section").each(function(){if($(this).offset().top<window.pageYOffset+10&&$(this).offset().top+$(this).height()>window.pageYOffset+10&&!linkMenu){var a=$(this).attr("id");$("header nav ul li").removeClass("active"),$("header nav a[href='#"+a+"']").parent().addClass("active")}})})},status=0;jQuery.rnd=function(a,b){return a=parseInt(a),b=parseInt(b),Math.floor(Math.random()*(b-a+1))+a};var particles=function(){$(".particles").each(function(){for(var a=$(this).width()/50*5,b=0;b<=a;b++){var c=$.rnd(60,120)/6;$(this).append('<span class="particle" style="top:'+$.rnd(20,80)+"%; left:"+$.rnd(0,95)+"%;width:"+c+"px; height:"+c+"px;animation-delay: "+$.rnd(0,30)/10+'s;"></span>')}})},menuTransform=function(){$("header ul li ul.children").each(function(){$(this).parent().addClass("dropdown"),$(this).addClass("dropdown-menu"),$(this).prev().addClass("dropdown-toggle").attr("data-toggle","dropdown").append('<span class="caret"></span>')})},renderScroll=function(){$(".enscroll-track").remove(),$(".scrollbox, .scroll-vertical").attr("style",""),$(".scrollbox").each(function(){var a=$(this).find(".items").find(".item");width=a.width(),total=a.length,a.closest(".items").css("width",width*total+"px"),$(this).enscroll({horizontalScrolling:!0,verticalScrolling:!1})}),$(".scroll-vertical").each(function(){$(this).enscroll({horizontalScrolling:!1,verticalScrolling:!0})})},base=function(){"use strict";return{init:function(){(new WOW).init(),$(".btn-scrollto").click(function(a){a.preventDefault();var b=$(this).attr("href");scrollTo(b)}),scroll(),particles(),menuTransform(),setTimeout(function(){masonryExec()},500),renderScroll(),$("#share").jsSocials({shares:["email","twitter","facebook","googleplus","linkedin","pinterest","whatsapp"]}),$(window).resize(function(){masonryExec(),renderScroll()});var a=window.location.href;$("header a[href='"+a+"']").parent().addClass("active"),$(".videos .list .item a").click(function(a){a.preventDefault();var b=$(this).attr("href").replace("#",""),c="https://www.youtube.com/embed/"+b+"?rel=0&arp;autoplay=1",d=$(".videos .screen");d.find("iframe").attr("src",c),d.slideDown(),$("html, body").animate({scrollTop:d.offset().top-100})}),$(".videos.landing .side li").click(function(a){a.preventDefault();var b=$(this).attr("data-youtube"),c="https://www.youtube.com/embed/"+b+"?rel=0&arp;autoplay=1";$(".videos.landing .player").find("iframe").attr("src",c),$(".videos.landing .side li").removeClass("active"),$(this).addClass("active")}),$(".btn-expand-img").click(function(a){a.preventDefault();var b=$(this).attr("data-target"),c=$(this).attr("data-img"),d="<img src='"+c+"' width='100%' />";$(b+" .modal-body").html(d)}),$(".discography-v2 .album a").click(function(){var a=$(this).closest(".album"),b=a.find(".infos").find("h4").html(),c=a.find(".content").attr("data-link"),d=a.find(".content").html(),e=a.find(".image").find("a").html();$("#modalDisco .modal-header h4").html(b),$("#modalDisco .modal-body .infos").html(d),$("#modalDisco .modal-body .image").html(e),$("#modalDisco .modal-footer .btn-theme").attr("href",c)}),$(window).load(function(){$(".page-loading").fadeOut(),masonryExec()});var b=window.location.hash;b.indexOf("#newsletterSuccess")>=0&&($("#newsletterSuccess").modal("show"),$("html, body").animate({scrollTop:$("#newsletter").offset().top},100));var b=window.location.hash;b.indexOf("#contactSuccess")>=0&&($("#contactSuccess").modal("show"),$("html, body").animate({scrollTop:$("#contact").offset().top},100))}}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.