13 lines
74 KiB
JavaScript
13 lines
74 KiB
JavaScript
|
/*main.min and several others*/
|
||
|
!function(e){skel.breakpoints({desktop:"(min-width: 737px)",tablet:"(min-width: 737px) and (max-width: 1200px)",mobile:"(max-width: 736px)"}).viewport({breakpoints:{tablet:{width:1080}}}),e(function(){var a=e(window),i=e("body");i.addClass("is-loading"),a.on("load",function(){i.removeClass("is-loading")}),e("form").placeholder(),skel.on("+mobile -mobile",function(){e.prioritize(".important\\28 mobile\\29",skel.breakpoint("mobile").active)}),skel.vars.IEVersion<9&&e(":last-child").addClass("last-child"),e("#nav > ul").dropotron({mode:"fade",noOpenerFade:!0,hoverDelay:150,hideDelay:350}),e('<div id="titleBar"><a href="#navPanel" class="toggle"></a></div>').appendTo(i),e('<div id="navPanel"><nav>'+e("#nav").navList()+"</nav></div>").appendTo(i).panel({delay:500,hideOnClick:!0,hideOnSwipe:!0,resetScroll:!0,resetForms:!0,side:"left",target:i,visibleClass:"navPanel-visible"}),"wp"==skel.vars.os&&skel.vars.osVersion<10&&e("#titleBar, #navPanel, #page-wrapper").css("transition","none")})}(jQuery);
|
||
|
/*soundmaster2*/
|
||
|
!function(e,t){"use strict";function n(n,o){function i(e){return _e.preferFlash&&le&&!_e.ignoreFlash&&_e.flash[e]!==t&&_e.flash[e]}function a(e){return function(t){var n,o=this._s;return o&&o._a?n=e.call(this,t):(o&&o.id?_e._wD(o.id+": Ignoring "+t.type):_e._wD(be+"Ignoring "+t.type),n=null),n}}this.setupOptions={url:n||null,flashVersion:8,debugMode:!0,debugFlash:!1,useConsole:!0,consoleOnly:!0,waitForWindowLoad:!1,bgColor:"#ffffff",useHighPerformance:!1,flashPollingInterval:null,html5PollingInterval:null,flashLoadTimeout:1e3,wmode:null,allowScriptAccess:"always",useFlashBlock:!1,useHTML5Audio:!0,forceUseGlobalHTML5Audio:!1,ignoreMobileRestrictions:!1,html5Test:/^(probably|maybe)$/i,preferFlash:!1,noSWFCache:!1,idPrefix:"sound"},this.defaultOptions={autoLoad:!1,autoPlay:!1,from:null,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onposition:null,onstop:null,onfailure:null,onfinish:null,multiShot:!0,multiShotEvents:!1,position:null,pan:0,stream:!0,to:null,type:null,usePolicyFile:!1,volume:100},this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null},this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null},this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a","m4b"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!1},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},opus:{type:["audio/ogg; codecs=opus","audio/opus"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}},this.movieID="sm2-container",this.id=o||"sm2movie",this.debugID="soundmanager-debug",this.debugURLParam=/([#?&])debug=1/i,this.versionNumber="V2.97a.20150601",this.version=null,this.movieURL=null,this.altURL=null,this.swfLoaded=!1,this.enabled=!1,this.oMC=null,this.sounds={},this.soundIDs=[],this.muted=!1,this.didFlashBlock=!1,this.filePattern=null,this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i},this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1},this.sandbox={type:null,types:{remote:"remote (domain-based) rules",localWithFile:"local with file access (no internet access)",localWithNetwork:"local with network (internet access only, no local access)",localTrusted:"local, trusted (local+internet access)"},description:null,noRemote:null,noLocal:null},this.html5={usingFlash:null},this.flash={},this.html5Only=!1,this.ignoreFlash=!1;var s,r,l,u,d,f,h,c,p,m,_,g,y,w,v,b,O,D,M,L,T,P,S,F,I,H,A,E,C,k,R,x,N,U,B,j,W,q,V,Q,K,$,G,J,X,z,Z,Y,ee,te,ne,oe,ie,ae,se,re,le,ue,de,fe,he,ce,pe,me,_e=this,ge=null,ye=null,we="soundManager",ve=we+": ",be="HTML5::",Oe=navigator.userAgent,De=e.location.href.toString(),Me=document,Le=[],Te=!0,Pe=!1,Se=!1,Fe=!1,Ie=!1,He=!1,Ae=0,Ee=["log","info","warn","error"],Ce=8,ke=null,Re=null,xe=!1,Ne=!1,Ue=0,Be=null,je=[],We=null,qe=Array.prototype.slice,Ve=!1,Qe=0,Ke=1e3,$e=Oe.match(/(ipad|iphone|ipod)/i),Ge=Oe.match(/android/i),Je=Oe.match(/msie/i),Xe=Oe.match(/webkit/i),ze=Oe.match(/safari/i)&&!Oe.match(/chrome/i),Ze=Oe.match(/opera/i),Ye=Oe.match(/(mobile|pre\/|xoom)/i)||$e||Ge,et=!De.match(/usehtml5audio/i)&&!De.match(/sm2\-ignorebadua/i)&&ze&&!Oe.match(/silk/i)&&Oe.match(/OS X 10_6_([3-7])/i),tt=e.console!==t&&console.log!==t,nt=Me.hasFocus!==t?Me.hasFocus():null,ot=ze&&(Me.hasFocus===t||!Me.hasFocus()),it=!ot,at=/(mp3|mp4|mpa|m4a|m4b)/i,st="about:blank",rt="data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==",lt=Me.location?Me.location.protocol.match(/http/i):null,ut=lt?"":"http://",dt=/^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,ft=["mpeg4","aac","flv","mov","mp4","m4v","f4v","m4a","m4b","mp4v","3gp","3g2"],ht=new RegExp("\\.("+ft.join("|")+")(\\?.*)?$","i");this.mimePattern=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i,this.useAltURL=!lt,W={swfBox:"sm2-object-box",s
|
||
|
var t,n,o=!1,i=!1;if(!s||"function"!=typeof s.canPlayType)return o;if(e instanceof Array){for(a=0,n=e.length;n>a;a++)(_e.html5[e[a]]||s.canPlayType(e[a]).match(_e.html5Test))&&(i=!0,_e.html5[e[a]]=!0,_e.flash[e[a]]=!!e[a].match(at));o=i}else t=s&&"function"==typeof s.canPlayType?s.canPlayType(e):!1,o=!(!t||!t.match(_e.html5Test));return o}if(!_e.useHTML5Audio||!_e.hasHTML5)return _e.html5.usingFlash=!0,We=!0,!1;var n,o,i,a,s=Audio!==t?Ze&&opera.version()<10?new Audio(null):new Audio:null,r={};i=_e.audioFormats;for(n in i)if(i.hasOwnProperty(n)&&(o="audio/"+n,r[n]=e(i[n].type),r[o]=r[n],n.match(at)?(_e.flash[n]=!0,_e.flash[o]=!0):(_e.flash[n]=!1,_e.flash[o]=!1),i[n]&&i[n].related))for(a=i[n].related.length-1;a>=0;a--)r["audio/"+i[n].related[a]]=r[n],_e.html5[i[n].related[a]]=r[n],_e.flash[i[n].related[a]]=r[n];return r.canPlayType=s?e:null,_e.html5=m(_e.html5,r),_e.html5.usingFlash=Y(),We=_e.html5.usingFlash,!0},T={notReady:"Unavailable - wait until onready() has fired.",notOK:"Audio support is not available.",domError:we+"exception caught while appending SWF to DOM.",spcWmode:"Removing wmode, preventing known SWF loading issue(s)",swf404:ve+"Verify that %s is a valid path.",tryDebug:"Try "+we+".debugFlash = true for more security details (output goes to SWF.)",checkSWF:"See SWF output for more debug info.",localFail:ve+"Non-HTTP page ("+Me.location.protocol+" URL?) Review Flash player security settings for this special case:\nhttp://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html\nMay need to add/allow path, eg. c:/sm2/ or /users/me/sm2/",waitFocus:ve+"Special case: Waiting for SWF to load with window focus...",waitForever:ve+"Waiting indefinitely for Flash (will recover if unblocked)...",waitSWF:ve+"Waiting for 100% SWF load...",needFunction:ve+"Function object expected for %s",badID:'Sound ID "%s" should be a string, starting with a non-numeric character',currentObj:ve+"_debug(): Current sound objects",waitOnload:ve+"Waiting for window.onload()",docLoaded:ve+"Document already loaded",onload:ve+"initComplete(): calling soundManager.onload()",onloadOK:we+".onload() complete",didInit:ve+"init(): Already called?",secNote:"Flash security note: Network/internet URLs will not load due to security restrictions. Access can be configured via Flash Player Global Security Settings Page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html",badRemove:ve+"Failed to remove Flash node.",shutdown:we+".disable(): Shutting down",queue:ve+"Queueing %s handler",smError:"SMSound.load(): Exception: JS-Flash communication failed, or JS error.",fbTimeout:"No flash response, applying ."+W.swfTimedout+" CSS...",fbLoaded:"Flash loaded",fbHandler:ve+"flashBlockHandler()",manURL:"SMSound.load(): Using manually-assigned URL",onURL:we+".load(): current URL already assigned.",badFV:we+'.flashVersion must be 8 or 9. "%s" is invalid. Reverting to %s.',as2loop:"Note: Setting stream:false so looping can work (flash 8 limitation)",noNSLoop:"Note: Looping not implemented for MovieStar formats",needfl9:"Note: Switching to flash 9, required for MP4 formats.",mfTimeout:"Setting flashLoadTimeout = 0 (infinite) for off-screen, mobile flash case",needFlash:ve+"Fatal error: Flash is needed to play some required formats, but is not available.",gotFocus:ve+"Got window focus.",policy:"Enabling usePolicyFile for data access",setup:we+".setup(): allowed parameters: %s",setupError:we+'.setup(): "%s" cannot be assigned with this method.',setupUndef:we+'.setup(): Could not find option "%s"',setupLate:we+".setup(): url, flashVersion and html5Test property changes will not take effect until reboot().",noURL:ve+"Flash URL required. Call soundManager.setup({url:...}) to get started.",sm2Loaded:"SoundManager 2: Ready. "+String.fromCharCode(10003),reset:we+".reset(): Removing event callbacks",mobileUA:"Mobile UA detected, preferring HTML5 by default.",globalHTML5:"Using singleton HTML5 Audio() pattern for this device.",ignoreMobile:"Ignoring mobile restrictions for this device."},U=function(){var e,t,n
|
||
|
/*page-player.js*/
|
||
|
function PagePlayer(){var e,t,a=this,s=this,i=soundManager,n=null,o=null,l=document.getElementsByTagName("head")[0],r=null,d=navigator.userAgent,u=d.match(/(opera|firefox)/i),c=d.match(/ipad|ipod|iphone/i);this.config={usePeakData:!1,useWaveformData:!1,useEQData:!1,fillGraph:!1,allowRightClick:!0,useThrottling:!1,autoStart:!1,playNext:!0,updatePageTitle:!0,emptyTime:"-:--",useFavIcon:!1},this.css={sDefault:"sm2_link",sLoading:"sm2_loading",sPlaying:"sm2_playing",sPaused:"sm2_paused"},this.sounds=[],this.soundsByObject=[],this.lastSound=null,this.soundCount=0,this.strings=[],this.dragActive=!1,this.dragExec=new Date,this.dragTimer=null,this.pageTitle=document.title,this.lastWPExec=new Date,this.lastWLExec=new Date,this.vuMeterData=[],this.oControls=null,this._mergeObjects=function(e,t){var a,s,i,n={};for(s in e)e.hasOwnProperty(s)&&(n[s]=e[s]);a="undefined"==typeof t?{}:t;for(i in a)"undefined"==typeof n[i]&&(n[i]=a[i]);return n},e=function(){function e(e){var t=n.call(e),a=t.length;return i?(t[1]="on"+t[1],a>3&&t.pop()):3===a&&t.push(!1),t}function t(e,t){var a=e.shift(),s=[o[t]];i?a[s](e[0],e[1]):a[s].apply(a,e)}function a(){t(e(arguments),"add")}function s(){t(e(arguments),"remove")}var i=window.attachEvent&&!window.addEventListener,n=Array.prototype.slice,o={add:i?"attachEvent":"addEventListener",remove:i?"detachEvent":"removeEventListener"};return{add:a,remove:s}}(),this.hasClass=function(e,t){return"undefined"!=typeof e.className?new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className):!1},this.addClass=function(e,t){return e&&t&&!a.hasClass(e,t)?void(e.className=(e.className?e.className+" ":"")+t):!1},this.removeClass=function(e,t){return e&&t&&a.hasClass(e,t)?void(e.className=e.className.replace(new RegExp("( "+t+")|("+t+")","g"),"")):!1},this.select=function(e,t){var s=a.getByClassName(e,"div",t||null);return s?s[0]:null},this.getByClassName=document.querySelectorAll?function(e,t,a){var s,i="."+e;return t&&(t=t.split(" ")),s=t.length>1?t.join(i+", "):t[0]+i,(a?a:document).querySelectorAll(s)}:function(e,t,s){var i,n,o=s?s:document,l=[],r=[];if(t&&(t=t.split(" ")),t instanceof Array){for(i=t.length;i--;)r&&r[t[i]]||(r[t[i]]=o.getElementsByTagName(t[i]));for(i=t.length;i--;)for(n=r[t[i]].length;n--;)a.hasClass(r[t[i]][n],e)&&l.push(r[t[i]][n])}else for(r=o.all||o.getElementsByTagName("*"),i=0,n=r.length;n>i;i++)a.hasClass(r[i],e)&&l.push(r[i]);return l},this.isChildOfClass=function(e,t){if(!e||!t)return!1;for(;e.parentNode&&!a.hasClass(e,t);)e=e.parentNode;return a.hasClass(e,t)},this.getParentByNodeName=function(e,t){if(!e||!t)return!1;for(t=t.toLowerCase();e.parentNode&&t!==e.parentNode.nodeName.toLowerCase();)e=e.parentNode;return e.parentNode&&t===e.parentNode.nodeName.toLowerCase()?e.parentNode:null},this.getOffX=function(e){var t=0;if(e.offsetParent)for(;e.offsetParent;)t+=e.offsetLeft,e=e.offsetParent;else e.x&&(t+=e.x);return t},this.getTime=function(e,t){var a=Math.floor(e/1e3),s=Math.floor(a/60),i=a-60*s;return t?s+":"+(10>i?"0"+i:i):{min:s,sec:i}},this.getSoundByObject=function(e){return"undefined"!=typeof a.soundsByObject[e.id]?a.soundsByObject[e.id]:null},this.getPreviousItem=function(e){if(e.previousElementSibling)e=e.previousElementSibling;else for(e=e.previousSibling;e&&e.previousSibling&&1!==e.previousSibling.nodeType;)e=e.previousSibling;return"li"!==e.nodeName.toLowerCase()?null:e.getElementsByTagName("a")[0]},this.playPrevious=function(e){if(e||(e=a.lastSound),!e)return!1;var t=a.getPreviousItem(e._data.oLI);return t&&s.handleClick({target:t}),t},this.getNextItem=function(e){if(e.nextElementSibling)e=e.nextElementSibling;else for(e=e.nextSibling;e&&e.nextSibling&&1!==e.nextSibling.nodeType;)e=e.nextSibling;return"li"!==e.nodeName.toLowerCase()?null:e.getElementsByTagName("a")[0]},this.playNext=function(e){if(e||(e=a.lastSound),!e)return!1;var t=a.getNextItem(e._data.oLI);return t&&s.handleClick({target:t}),t},this.setPageTitle=function(e){if(!a.config.updatePageTitle)return!1;try{document.title=(e?e+" - ":"")+a.pageTitle}catch(t){a.setPageTitle=function(){return!1}}},this.events={play:function(){s.r
|
||
|
/*script.js*/
|
||
|
$("tr").click(function(){window.location.href=$(this).find("a").attr("href")}),$(document).ready(function(){var n=new Array(".textOptions");n=n.join(",");var t=$(n).css("font-size");$(".resetFont").click(function(){$(n).css("font-size",t)}),$(".increaseFont").click(function(){var t=$(n).css("font-size"),s=parseFloat(t,10),c=1.1*s;return $(n).css("font-size",c),!1}),$(".decreaseFont").click(function(){var t=$(n).css("font-size"),s=parseFloat(t,10),c=.9*s;return $(n).css("font-size",c),!1})});
|
||
|
/*util.js*/
|
||
|
!function(e){e.fn.navList=function(){var t=e(this);return $a=t.find("a"),b=[],$a.each(function(){var t=e(this),a=Math.max(0,t.parents("li").length-1),l=t.attr("href"),i=t.attr("target");b.push('<a class="link depth-'+a+'"'+("undefined"!=typeof i&&""!=i?' target="'+i+'"':"")+("undefined"!=typeof l&&""!=l?' href="'+l+'"':"")+'><span class="indent-'+a+'"></span>'+t.text()+"</a>")}),b.join("")},e.fn.panel=function(t){if(0==this.length)return i;if(this.length>1){for(var a=0;a<this.length;a++)e(this[a]).panel(t);return i}var l,i=e(this),n=e("body"),r=e(window),o=i.attr("id");return l=e.extend({delay:0,hideOnClick:!1,hideOnEscape:!1,hideOnSwipe:!1,resetScroll:!1,resetForms:!1,side:null,target:i,visibleClass:"visible"},t),"jQuery"!=typeof l.target&&(l.target=e(l.target)),i._hide=function(e){l.target.hasClass(l.visibleClass)&&(e&&(e.preventDefault(),e.stopPropagation()),l.target.removeClass(l.visibleClass),window.setTimeout(function(){l.resetScroll&&i.scrollTop(0),l.resetForms&&i.find("form").each(function(){this.reset()})},l.delay))},i.css("-ms-overflow-style","-ms-autohiding-scrollbar").css("-webkit-overflow-scrolling","touch"),l.hideOnClick&&(i.find("a").css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),i.on("click","a",function(t){var a=e(this),n=a.attr("href"),r=a.attr("target");n&&"#"!=n&&""!=n&&n!="#"+o&&(t.preventDefault(),t.stopPropagation(),i._hide(),window.setTimeout(function(){"_blank"==r?window.open(n):window.location.href=n},l.delay+10))})),i.on("touchstart",function(e){i.touchPosX=e.originalEvent.touches[0].pageX,i.touchPosY=e.originalEvent.touches[0].pageY}),i.on("touchmove",function(e){if(null!==i.touchPosX&&null!==i.touchPosY){var t=i.touchPosX-e.originalEvent.touches[0].pageX,a=i.touchPosY-e.originalEvent.touches[0].pageY,n=i.outerHeight(),r=i.get(0).scrollHeight-i.scrollTop();if(l.hideOnSwipe){var o=!1,s=20,c=50;switch(l.side){case"left":o=s>a&&a>-1*s&&t>c;break;case"right":o=s>a&&a>-1*s&&-1*c>t;break;case"top":o=s>t&&t>-1*s&&a>c;break;case"bottom":o=s>t&&t>-1*s&&-1*c>a}if(o)return i.touchPosX=null,i.touchPosY=null,i._hide(),!1}(i.scrollTop()<0&&0>a||r>n-2&&n+2>r&&a>0)&&(e.preventDefault(),e.stopPropagation())}}),i.on("click touchend touchstart touchmove",function(e){e.stopPropagation()}),i.on("click",'a[href="#'+o+'"]',function(e){e.preventDefault(),e.stopPropagation(),l.target.removeClass(l.visibleClass)}),n.on("click touchend",function(e){i._hide(e)}),n.on("click",'a[href="#'+o+'"]',function(e){e.preventDefault(),e.stopPropagation(),l.target.toggleClass(l.visibleClass)}),l.hideOnEscape&&r.on("keydown",function(e){27==e.keyCode&&i._hide(e)}),i},e.fn.placeholder=function(){if("undefined"!=typeof document.createElement("input").placeholder)return e(this);if(0==this.length)return a;if(this.length>1){for(var t=0;t<this.length;t++)e(this[t]).placeholder();return a}var a=e(this);return a.find("input[type=text],textarea").each(function(){var t=e(this);(""==t.val()||t.val()==t.attr("placeholder"))&&t.addClass("polyfill-placeholder").val(t.attr("placeholder"))}).on("blur",function(){var t=e(this);t.attr("name").match(/-polyfill-field$/)||""==t.val()&&t.addClass("polyfill-placeholder").val(t.attr("placeholder"))}).on("focus",function(){var t=e(this);t.attr("name").match(/-polyfill-field$/)||t.val()==t.attr("placeholder")&&t.removeClass("polyfill-placeholder").val("")}),a.find("input[type=password]").each(function(){var t=e(this),a=e(e("<div>").append(t.clone()).remove().html().replace(/type="password"/i,'type="text"').replace(/type=password/i,"type=text"));""!=t.attr("id")&&a.attr("id",t.attr("id")+"-polyfill-field"),""!=t.attr("name")&&a.attr("name",t.attr("name")+"-polyfill-field"),a.addClass("polyfill-placeholder").val(a.attr("placeholder")).insertAfter(t),""==t.val()?t.hide():a.hide(),t.on("blur",function(e){e.preventDefault();var a=t.parent().find("input[name="+t.attr("name")+"-polyfill-field]");""==t.val()&&(t.hide(),a.show())}),a.on("focus",function(e){e.preventDefault();var t=a.parent().find("input[name="+a.attr("name").replace("-polyfill-field","")+"]");a.hide(),t.show().focus()}).on("keypress",function(e){
|
||
|
/*script*/
|
||
|
$("tr").click(function(){window.location.href=$(this).find("a").attr("href")}),$(document).ready(function(){var n=new Array(".textOptions");n=n.join(",");var t=$(n).css("font-size");$(".resetFont").click(function(){$(n).css("font-size",t)}),$(".increaseFont").click(function(){var t=$(n).css("font-size"),s=parseFloat(t,10),c=1.1*s;return $(n).css("font-size",c),!1}),$(".decreaseFont").click(function(){var t=$(n).css("font-size"),s=parseFloat(t,10),c=.9*s;return $(n).css("font-size",c),!1})});
|