@pimaonline/pimaonline-themepack 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. package/README.md +113 -0
  2. package/dist/css/main.css +1 -0
  3. package/dist/css/plugins/font-awesome.css +1 -0
  4. package/dist/css/routes.css +3 -0
  5. package/dist/img/theme-images/culinary/black-marble.png +0 -0
  6. package/dist/img/theme-images/culinary/concrete-light.png +0 -0
  7. package/dist/img/theme-images/culinary/dark-marble.png +0 -0
  8. package/dist/img/theme-images/culinary/steel-stainless-rotate.jpg +0 -0
  9. package/dist/img/theme-images/culinary/wood.jpg +0 -0
  10. package/dist/img/theme-images/health-information-tech/hit-bkg.jpg +0 -0
  11. package/dist/img/theme-images/journalism/bg.jpg +0 -0
  12. package/dist/img/theme-images/machine/bg-diamond-plate.jpg +0 -0
  13. package/dist/img/theme-images/music/half_note.svg +5 -0
  14. package/dist/img/theme-images/music/music_brackets.png +0 -0
  15. package/dist/img/theme-images/music/treble-cleft.png +0 -0
  16. package/dist/img/theme-images/resort/fleur-de-lis.png +0 -0
  17. package/dist/img/theme-images/resort/flourish-left.svg +32 -0
  18. package/dist/img/theme-images/resort/flourish-main.svg +37 -0
  19. package/dist/img/theme-images/resort/flourish-right.svg +31 -0
  20. package/dist/img/theme-images/resort/hotel-wallpaper.png +0 -0
  21. package/dist/img/theme-images/resort/separator.svg +15 -0
  22. package/dist/img/theme-images/resort/stripes-light.png +0 -0
  23. package/dist/img/theme-images/theme-banners/bannerimage-calendar.jpg +0 -0
  24. package/dist/img/theme-images/theme-banners/bannerimage-desk-with-laptop.jpg +0 -0
  25. package/dist/img/theme-images/theme-banners/bannerimage-empty-classroom.jpg +0 -0
  26. package/dist/img/theme-images/theme-banners/bannerimage-empty-road.jpg +0 -0
  27. package/dist/img/theme-images/theme-banners/bannerimage-fingers-interacting-tablet.jpg +0 -0
  28. package/dist/img/theme-images/theme-banners/bannerimage-fingers-typing.jpg +0 -0
  29. package/dist/img/theme-images/theme-banners/bannerimage-hand-signing-document.jpg +0 -0
  30. package/dist/img/theme-images/theme-banners/bannerimage-student-shopping.jpg +0 -0
  31. package/dist/img/theme-images/theme-banners/bannerimage-students-on-computer.jpg +0 -0
  32. package/dist/img/theme-images/theme-banners/bannerimage-students-on-grass.jpg +0 -0
  33. package/dist/img/theme-images/widgets/separator.svg +17 -0
  34. package/dist/img/theme-images/writing/bg-composition-notebook.jpg +0 -0
  35. package/dist/img/theme-images/writing/bg-writing.jpg +0 -0
  36. package/dist/js/jumpTo.js +4 -0
  37. package/dist/js/scripts.js +209 -0
  38. package/dist/js/scripts2.js +205 -0
  39. package/dist/plugins/fancybox/_notes/dwsync.xml +1 -0
  40. package/dist/plugins/fancybox/blank.gif +0 -0
  41. package/dist/plugins/fancybox/fancybox-example.html +52 -0
  42. package/dist/plugins/fancybox/fancybox.css +73 -0
  43. package/dist/plugins/fancybox/fancybox_loading.gif +0 -0
  44. package/dist/plugins/fancybox/fancybox_loading@2x.gif +0 -0
  45. package/dist/plugins/fancybox/fancybox_overlay.png +0 -0
  46. package/dist/plugins/fancybox/fancybox_sprite.png +0 -0
  47. package/dist/plugins/fancybox/fancybox_sprite@2x.png +0 -0
  48. package/dist/plugins/fancybox/helpers/_notes/dwsync.xml +1 -0
  49. package/dist/plugins/fancybox/helpers/fancybox_buttons.png +0 -0
  50. package/dist/plugins/fancybox/helpers/jquery.fancybox-buttons.css +97 -0
  51. package/dist/plugins/fancybox/helpers/jquery.fancybox-buttons.js +122 -0
  52. package/dist/plugins/fancybox/helpers/jquery.fancybox-media.js +201 -0
  53. package/dist/plugins/fancybox/helpers/jquery.fancybox-thumbs.css +55 -0
  54. package/dist/plugins/fancybox/helpers/jquery.fancybox-thumbs.js +165 -0
  55. package/dist/plugins/fancybox/jquery.fancybox.css +275 -0
  56. package/dist/plugins/fancybox/jquery.fancybox.js +2018 -0
  57. package/dist/plugins/fancybox/jquery.fancybox.pack.js +46 -0
  58. package/dist/plugins/flashcards/README.md +135 -0
  59. package/dist/plugins/flashcards/_notes/dwsync.xml +1 -0
  60. package/dist/plugins/flashcards/config.rb +24 -0
  61. package/dist/plugins/flashcards/css/_notes/dwsync.xml +1 -0
  62. package/dist/plugins/flashcards/css/style.css +216 -0
  63. package/dist/plugins/flashcards/flashcards-example.html +66 -0
  64. package/dist/plugins/flashcards/images/_notes/dwsync.xml +1 -0
  65. package/dist/plugins/flashcards/images/icon-back.svg +1 -0
  66. package/dist/plugins/flashcards/images/icon-flip.svg +1 -0
  67. package/dist/plugins/flashcards/images/icon-next.svg +1 -0
  68. package/dist/plugins/flashcards/index.html +90 -0
  69. package/dist/plugins/flashcards/js/_notes/dwsync.xml +1 -0
  70. package/dist/plugins/flashcards/js/flash_cards.min.js +12 -0
  71. package/dist/plugins/flashcards/js/plugins/_notes/dwsync.xml +1 -0
  72. package/dist/plugins/flashcards/js/plugins/flash_cards.js +62 -0
  73. package/dist/plugins/flashcards/js/plugins/jquery.cycle.js +1148 -0
  74. package/dist/plugins/flashcards/js/vendor/_notes/dwsync.xml +1 -0
  75. package/dist/plugins/flashcards/js/vendor/jquery-1.7.2.js +9404 -0
  76. package/dist/plugins/flashcards/js/vendor/jquery-1.7.2.min.js +4 -0
  77. package/dist/plugins/flashcards/js/vendor/modernizr-2.5.3.min.js +4 -0
  78. package/dist/plugins/flashcards/resources/fonts/flash_cards/_notes/dwsync.xml +1 -0
  79. package/dist/plugins/flashcards/resources/fonts/flash_cards/flash_cards.eot +0 -0
  80. package/dist/plugins/flashcards/resources/fonts/flash_cards/flash_cards.svg +21 -0
  81. package/dist/plugins/flashcards/resources/fonts/flash_cards/flash_cards.ttf +0 -0
  82. package/dist/plugins/flashcards/resources/fonts/flash_cards/flash_cards.woff +0 -0
  83. package/dist/plugins/floating-particles/floating-particles.js +68 -0
  84. package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.eot +0 -0
  85. package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.svg +3570 -0
  86. package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.ttf +0 -0
  87. package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.woff +0 -0
  88. package/dist/plugins/font-awesome-icons/webfonts/fa-brands-400.woff2 +0 -0
  89. package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.eot +0 -0
  90. package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.svg +803 -0
  91. package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.ttf +0 -0
  92. package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.woff +0 -0
  93. package/dist/plugins/font-awesome-icons/webfonts/fa-regular-400.woff2 +0 -0
  94. package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.eot +0 -0
  95. package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.svg +4700 -0
  96. package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.ttf +0 -0
  97. package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.woff +0 -0
  98. package/dist/plugins/font-awesome-icons/webfonts/fa-solid-900.woff2 +0 -0
  99. package/dist/plugins/global-homepage-overrides/global-homepage-overrides.css +539 -0
  100. package/dist/plugins/global-homepage-overrides/global-homepage-overrides.html +18 -0
  101. package/dist/plugins/global-homepage-overrides/global-homepage-overrides.js +53 -0
  102. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-advising.png +0 -0
  103. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-apps.png +0 -0
  104. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-counseling.png +0 -0
  105. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-d2l.png +0 -0
  106. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-email.png +0 -0
  107. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-nettutor.png +0 -0
  108. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-register.png +0 -0
  109. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-research-help.png +0 -0
  110. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-survey.png +0 -0
  111. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-tech-support.png +0 -0
  112. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-testing-center.png +0 -0
  113. package/dist/plugins/global-homepage-overrides/img/quicklinks-icons/ql-tutoring.png +0 -0
  114. package/dist/plugins/preview-banner/preview-banner.css +126 -0
  115. package/dist/plugins/preview-banner/preview-banner.html +17 -0
  116. package/dist/plugins/preview-banner/preview-banner.js +57 -0
  117. package/package.json +44 -0
@@ -0,0 +1,12 @@
1
+ /*
2
+ * jQuery Cycle
3
+ * For unminimized version, see /js/plugins/
4
+ * All transitions except shuffle have been removed to reduce file size.
5
+ */
6
+ (function(a,b){function d(b){if(a.fn.cycle.debug)e(b)}function e(){if(window.console&&console.log)console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function f(b,c,d){var e=a(b).data("cycle.opts");var f=!!b.cyclePause;if(f&&e.paused)e.paused(b,e,c,d);else if(!f&&e.resumed)e.resumed(b,e,c,d)}function g(c,d,g){function k(b,c,d){if(!b&&c===true){var f=a(d).data("cycle.opts");if(!f){e("options not found, can not resume");return false}if(d.cycleTimeout){clearTimeout(d.cycleTimeout);d.cycleTimeout=0}n(f.elements,f,1,!f.backwards)}}if(c.cycleStop===b)c.cycleStop=0;if(d===b||d===null)d={};if(d.constructor==String){switch(d){case"destroy":case"stop":var h=a(c).data("cycle.opts");if(!h)return false;c.cycleStop++;if(c.cycleTimeout)clearTimeout(c.cycleTimeout);c.cycleTimeout=0;if(h.elements)a(h.elements).stop();a(c).removeData("cycle.opts");if(d=="destroy")i(c,h);return false;case"toggle":c.cyclePause=c.cyclePause===1?0:1;k(c.cyclePause,g,c);f(c);return false;case"pause":c.cyclePause=1;f(c);return false;case"resume":c.cyclePause=0;k(false,g,c);f(c);return false;case"prev":case"next":h=a(c).data("cycle.opts");if(!h){e('options not found, "prev/next" ignored');return false}a.fn.cycle[d](h);return false;default:d={fx:d}}return d}else if(d.constructor==Number){var j=d;d=a(c).data("cycle.opts");if(!d){e("options not found, can not advance slide");return false}if(j<0||j>=d.elements.length){e("invalid slide index: "+j);return false}d.nextSlide=j;if(c.cycleTimeout){clearTimeout(c.cycleTimeout);c.cycleTimeout=0}if(typeof g=="string")d.oneTimeFx=g;n(d.elements,d,1,j>=d.currSlide);return false}return d}function h(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter){try{b.style.removeAttribute("filter")}catch(d){}}}function i(b,c){if(c.next)a(c.next).unbind(c.prevNextEvent);if(c.prev)a(c.prev).unbind(c.prevNextEvent);if(c.pager||c.pagerAnchorBuilder)a.each(c.pagerAnchors||[],function(){this.unbind().remove()});c.pagerAnchors=null;a(b).unbind("mouseenter.cycle mouseleave.cycle");if(c.destroy)c.destroy(c)}function j(c,d,g,i,j){var o;var s=a.extend({},a.fn.cycle.defaults,i||{},a.metadata?c.metadata():a.meta?c.data():{});var t=a.isFunction(c.data)?c.data(s.metaAttr):null;if(t)s=a.extend(s,t);if(s.autostop)s.countdown=s.autostopCount||g.length;var u=c[0];c.data("cycle.opts",s);s.$cont=c;s.stopCount=u.cycleStop;s.elements=g;s.before=s.before?[s.before]:[];s.after=s.after?[s.after]:[];if(!a.support.opacity&&s.cleartype)s.after.push(function(){h(this,s)});if(s.continuous)s.after.push(function(){n(g,s,0,!s.backwards)});k(s);if(!a.support.opacity&&s.cleartype&&!s.cleartypeNoBg)r(d);if(c.css("position")=="static")c.css("position","relative");if(s.width)c.width(s.width);if(s.height&&s.height!="auto")c.height(s.height);if(s.startingSlide!==b){s.startingSlide=parseInt(s.startingSlide,10);if(s.startingSlide>=g.length||s.startSlide<0)s.startingSlide=0;else o=true}else if(s.backwards)s.startingSlide=g.length-1;else s.startingSlide=0;if(s.random){s.randomMap=[];for(var v=0;v<g.length;v++)s.randomMap.push(v);s.randomMap.sort(function(a,b){return Math.random()-.5});if(o){for(var w=0;w<g.length;w++){if(s.startingSlide==s.randomMap[w]){s.randomIndex=w}}}else{s.randomIndex=1;s.startingSlide=s.randomMap[1]}}else if(s.startingSlide>=g.length)s.startingSlide=0;s.currSlide=s.startingSlide||0;var x=s.startingSlide;d.css({position:"absolute",top:0,left:0}).hide().each(function(b){var c;if(s.backwards)c=x?b<=x?g.length+(b-x):x-b:g.length-b;else c=x?b>=x?g.length-(b-x):x-b:g.length-b;a(this).css("z-index",c)});a(g[x]).css("opacity",1).show();h(g[x],s);if(s.fit){if(!s.aspect){if(s.width)d.width(s.width);if(s.height&&s.height!="auto")d.height(s.height)}else{d.each(function(){var b=a(this);var c=s.aspect===true?b.width()/b.height():s.aspect;if(s.width&&b.width()!=s.width){b.width(s.width);b.height(s.width/c)}if(s.height&&b.height()<s.height){b.height(s.height);b.width(s.height*c)}})}}if(s.center&&(!s.fit||s.aspect)){d.each(function(){var b=a(this);b.css({"margin-left":s.width?(s.width-b.width())/2+"px":0,"margin-top":s.height?(s.height-b.height())/2+"px":0})})}if(s.center&&!s.fit&&!s.slideResize){d.each(function(){var b=a(this);b.css({"margin-left":s.width?(s.width-b.width())/2+"px":0,"margin-top":s.height?(s.height-b.height())/2+"px":0})})}var y=s.containerResize&&!c.innerHeight();if(y){var z=0,A=0;for(var B=0;B<g.length;B++){var C=a(g[B]),D=C[0],E=C.outerWidth(),F=C.outerHeight();if(!E)E=D.offsetWidth||D.width||C.attr("width");if(!F)F=D.offsetHeight||D.height||C.attr("height");z=E>z?E:z;A=F>A?F:A}if(z>0&&A>0)c.css({width:z+"px",height:A+"px"})}var G=false;if(s.pause)c.bind("mouseenter.cycle",function(){G=true;this.cyclePause++;f(u,true)}).bind("mouseleave.cycle",function(){if(G)this.cyclePause--;f(u,true)});if(l(s)===false)return false;var H=false;i.requeueAttempts=i.requeueAttempts||0;d.each(function(){var b=a(this);this.cycleH=s.fit&&s.height?s.height:b.height()||this.offsetHeight||this.height||b.attr("height")||0;this.cycleW=s.fit&&s.width?s.width:b.width()||this.offsetWidth||this.width||b.attr("width")||0;if(b.is("img")){var c=a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete;var d=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var f=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete;var g=this.cycleH===0&&this.cycleW===0&&!this.complete;if(c||d||f||g){if(j.s&&s.requeueOnImageNotLoaded&&++i.requeueAttempts<100){e(i.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(j.s,j.c).cycle(i)},s.requeueTimeout);H=true;return false}else{e("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(H)return false;s.cssBefore=s.cssBefore||{};s.cssAfter=s.cssAfter||{};s.cssFirst=s.cssFirst||{};s.animIn=s.animIn||{};s.animOut=s.animOut||{};d.not(":eq("+x+")").css(s.cssBefore);a(d[x]).css(s.cssFirst);if(s.timeout){s.timeout=parseInt(s.timeout,10);if(s.speed.constructor==String)s.speed=a.fx.speeds[s.speed]||parseInt(s.speed,10);if(!s.sync)s.speed=s.speed/2;var I=s.fx=="none"?0:s.fx=="shuffle"?500:250;while(s.timeout-s.speed<I)s.timeout+=s.speed}if(s.easing)s.easeIn=s.easeOut=s.easing;if(!s.speedIn)s.speedIn=s.speed;if(!s.speedOut)s.speedOut=s.speed;s.slideCount=g.length;s.currSlide=s.lastSlide=x;if(s.random){if(++s.randomIndex==g.length)s.randomIndex=0;s.nextSlide=s.randomMap[s.randomIndex]}else if(s.backwards)s.nextSlide=s.startingSlide===0?g.length-1:s.startingSlide-1;else s.nextSlide=s.startingSlide>=g.length-1?0:s.startingSlide+1;if(!s.multiFx){var J=a.fn.cycle.transitions[s.fx];if(a.isFunction(J))J(c,d,s);else if(s.fx!="custom"&&!s.multiFx){e("unknown transition: "+s.fx,"; slideshow terminating");return false}}var K=d[x];if(!s.skipInitializationCallbacks){if(s.before.length)s.before[0].apply(K,[K,K,s,true]);if(s.after.length)s.after[0].apply(K,[K,K,s,true])}if(s.next)a(s.next).bind(s.prevNextEvent,function(){return p(s,1)});if(s.prev)a(s.prev).bind(s.prevNextEvent,function(){return p(s,0)});if(s.pager||s.pagerAnchorBuilder)q(g,s);m(s,g);return s}function k(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function l(b){var c,f,g=a.fn.cycle.transitions;if(b.fx.indexOf(",")>0){b.multiFx=true;b.fxs=b.fx.replace(/\s*/g,"").split(",");for(c=0;c<b.fxs.length;c++){var h=b.fxs[c];f=g[h];if(!f||!g.hasOwnProperty(h)||!a.isFunction(f)){e("discarding unknown transition: ",h);b.fxs.splice(c,1);c--}}if(!b.fxs.length){e("No valid transitions named; slideshow terminating.");return false}}else if(b.fx=="all"){b.multiFx=true;b.fxs=[];for(var i in g){if(g.hasOwnProperty(i)){f=g[i];if(g.hasOwnProperty(i)&&a.isFunction(f))b.fxs.push(i)}}}if(b.multiFx&&b.randomizeEffects){var j=Math.floor(Math.random()*20)+30;for(c=0;c<j;c++){var k=Math.floor(Math.random()*b.fxs.length);b.fxs.push(b.fxs.splice(k,1)[0])}d("randomized fx sequence: ",b.fxs)}return true}function m(b,c){b.addSlide=function(d,e){var f=a(d),g=f[0];if(!b.autostopCount)b.countdown++;c[e?"unshift":"push"](g);if(b.els)b.els[e?"unshift":"push"](g);b.slideCount=c.length;if(b.random){b.randomMap.push(b.slideCount-1);b.randomMap.sort(function(a,b){return Math.random()-.5})}f.css("position","absolute");f[e?"prependTo":"appendTo"](b.$cont);if(e){b.currSlide++;b.nextSlide++}if(!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg)r(f);if(b.fit&&b.width)f.width(b.width);if(b.fit&&b.height&&b.height!="auto")f.height(b.height);g.cycleH=b.fit&&b.height?b.height:f.height();g.cycleW=b.fit&&b.width?b.width:f.width();f.css(b.cssBefore);if(b.pager||b.pagerAnchorBuilder)a.fn.cycle.createPagerAnchor(c.length-1,g,a(b.pager),c,b);if(a.isFunction(b.onAddSlide))b.onAddSlide(f);else f.hide()}}function n(c,e,f,g){function q(){var a=0,b=e.timeout;if(e.timeout&&!e.continuous){a=o(c[e.currSlide],c[e.nextSlide],e,g);if(e.fx=="shuffle")a-=e.speedOut}else if(e.continuous&&h.cyclePause)a=10;if(a>0)h.cycleTimeout=setTimeout(function(){n(c,e,0,!e.backwards)},a)}var h=e.$cont[0],i=c[e.currSlide],j=c[e.nextSlide];if(f&&e.busy&&e.manualTrump){d("manualTrump in go(), stopping active transition");a(c).stop(true,true);e.busy=0;clearTimeout(h.cycleTimeout)}if(e.busy){d("transition active, ignoring new tx request");return}if(h.cycleStop!=e.stopCount||h.cycleTimeout===0&&!f)return;if(!f&&!h.cyclePause&&!e.bounce&&(e.autostop&&--e.countdown<=0||e.nowrap&&!e.random&&e.nextSlide<e.currSlide)){if(e.end)e.end(e);return}var k=false;if((f||!h.cyclePause)&&e.nextSlide!=e.currSlide){k=true;var l=e.fx;i.cycleH=i.cycleH||a(i).height();i.cycleW=i.cycleW||a(i).width();j.cycleH=j.cycleH||a(j).height();j.cycleW=j.cycleW||a(j).width();if(e.multiFx){if(g&&(e.lastFx===b||++e.lastFx>=e.fxs.length))e.lastFx=0;else if(!g&&(e.lastFx===b||--e.lastFx<0))e.lastFx=e.fxs.length-1;l=e.fxs[e.lastFx]}if(e.oneTimeFx){l=e.oneTimeFx;e.oneTimeFx=null}a.fn.cycle.resetState(e,l);if(e.before.length)a.each(e.before,function(a,b){if(h.cycleStop!=e.stopCount)return;b.apply(j,[i,j,e,g])});var m=function(){e.busy=0;a.each(e.after,function(a,b){if(h.cycleStop!=e.stopCount)return;b.apply(j,[i,j,e,g])});if(!h.cycleStop){q()}};d("tx firing("+l+"); currSlide: "+e.currSlide+"; nextSlide: "+e.nextSlide);e.busy=1;if(e.fxFn)e.fxFn(i,j,e,m,g,f&&e.fastOnEvent);else if(a.isFunction(a.fn.cycle[e.fx]))a.fn.cycle[e.fx](i,j,e,m,g,f&&e.fastOnEvent);else a.fn.cycle.custom(i,j,e,m,g,f&&e.fastOnEvent)}else{q()}if(k||e.nextSlide==e.currSlide){var p;e.lastSlide=e.currSlide;if(e.random){e.currSlide=e.nextSlide;if(++e.randomIndex==c.length){e.randomIndex=0;e.randomMap.sort(function(a,b){return Math.random()-.5})}e.nextSlide=e.randomMap[e.randomIndex];if(e.nextSlide==e.currSlide)e.nextSlide=e.currSlide==e.slideCount-1?0:e.currSlide+1}else if(e.backwards){p=e.nextSlide-1<0;if(p&&e.bounce){e.backwards=!e.backwards;e.nextSlide=1;e.currSlide=0}else{e.nextSlide=p?c.length-1:e.nextSlide-1;e.currSlide=p?0:e.nextSlide+1}}else{p=e.nextSlide+1==c.length;if(p&&e.bounce){e.backwards=!e.backwards;e.nextSlide=c.length-2;e.currSlide=c.length-1}else{e.nextSlide=p?0:e.nextSlide+1;e.currSlide=p?c.length-1:e.nextSlide-1}}}if(k&&e.pager)e.updateActivePagerLink(e.pager,e.currSlide,e.activePagerClass)}function o(a,b,c,e){if(c.timeoutFn){var f=c.timeoutFn.call(a,a,b,c,e);while(c.fx!="none"&&f-c.speed<250)f+=c.speed;d("calculated timeout: "+f+"; speed: "+c.speed);if(f!==false)return f}return c.timeout}function p(b,c){var d=c?1:-1;var e=b.elements;var f=b.$cont[0],g=f.cycleTimeout;if(g){clearTimeout(g);f.cycleTimeout=0}if(b.random&&d<0){b.randomIndex--;if(--b.randomIndex==-2)b.randomIndex=e.length-2;else if(b.randomIndex==-1)b.randomIndex=e.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random){b.nextSlide=b.randomMap[b.randomIndex]}else{b.nextSlide=b.currSlide+d;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=e.length-1}else if(b.nextSlide>=e.length){if(b.nowrap)return false;b.nextSlide=0}}var h=b.onPrevNextEvent||b.prevNextClick;if(a.isFunction(h))h(d>0,b.nextSlide,e[b.nextSlide]);n(e,b,1,c);return false}function q(b,c){var d=a(c.pager);a.each(b,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,b,c)});c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function r(b){function c(a){a=parseInt(a,10).toString(16);return a.length<2?"0"+a:a}function e(b){for(;b&&b.nodeName.toLowerCase()!="html";b=b.parentNode){var d=a.css(b,"background-color");if(d&&d.indexOf("rgb")>=0){var e=d.match(/\d+/g);return"#"+c(e[0])+c(e[1])+c(e[2])}if(d&&d!="transparent")return d}return"#ffffff"}d("applying clearType background-color hack");b.each(function(){a(this).css("background-color",e(this))})}"use strict";var c="2.9999.5";if(a.support===b){a.support={opacity:!a.browser.msie}}a.expr[":"].paused=function(a){return a.cyclePause};a.fn.cycle=function(b,c){var f={s:this.selector,c:this.context};if(this.length===0&&b!="stop"){if(!a.isReady&&f.s){e("DOM not ready, queuing slideshow");a(function(){a(f.s,f.c).cycle(b,c)});return this}e("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var h=g(this,b,c);if(h===false)return;h.updateActivePagerLink=h.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;this.cycleStop=0;var i=a(this);var k=h.slideExpr?a(h.slideExpr,this):i.children();var l=k.get();if(l.length<2){e("terminating; too few slides: "+l.length);return}var m=j(i,k,l,h,f);if(m===false)return;var p=m.continuous?10:o(l[m.currSlide],l[m.nextSlide],m,!m.backwards);if(p){p+=m.delay||0;if(p<10)p=10;d("first timeout: "+p);this.cycleTimeout=setTimeout(function(){n(l,m,0,!h.backwards)},p)}})};a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];if(a.isFunction(d))d(b.$cont,a(b.elements),b)};a.fn.cycle.updateActivePagerLink=function(b,c,d){a(b).each(function(){a(this).children().removeClass(d).eq(c).addClass(d)})};a.fn.cycle.next=function(a){p(a,1)};a.fn.cycle.prev=function(a){p(a,0)};a.fn.cycle.createPagerAnchor=function(b,c,e,g,h){var i;if(a.isFunction(h.pagerAnchorBuilder)){i=h.pagerAnchorBuilder(b,c);d("pagerAnchorBuilder("+b+", el) returned: "+i)}else i='<a href="#">'+(b+1)+"</a>";if(!i)return;var j=a(i);if(j.parents("body").length===0){var k=[];if(e.length>1){e.each(function(){var b=j.clone(true);a(this).append(b);k.push(b[0])});j=a(k)}else{j.appendTo(e)}}h.pagerAnchors=h.pagerAnchors||[];h.pagerAnchors.push(j);var l=function(c){c.preventDefault();h.nextSlide=b;var d=h.$cont[0],e=d.cycleTimeout;if(e){clearTimeout(e);d.cycleTimeout=0}var f=h.onPagerEvent||h.pagerClick;if(a.isFunction(f))f(h.nextSlide,g[h.nextSlide]);n(g,h,1,h.currSlide<b)};if(/mouseenter|mouseover/i.test(h.pagerEvent)){j.hover(l,function(){})}else{j.bind(h.pagerEvent,l)}if(!/^click/.test(h.pagerEvent)&&!h.allowPagerClickBubble)j.bind("click.cycle",function(){return false});var m=h.$cont[0];var o=false;if(h.pauseOnPagerHover){j.hover(function(){o=true;m.cyclePause++;f(m,true,true)},function(){if(o)m.cyclePause--;f(m,true,true)})}};a.fn.cycle.hopsFromLast=function(a,b){var c,d=a.lastSlide,e=a.currSlide;if(b)c=e>d?e-d:a.slideCount-d;else c=e<d?d-e:d+a.slideCount-e;return c};a.fn.cycle.commonReset=function(b,c,d,e,f,g){a(d.elements).not(b).hide();if(typeof d.cssBefore.opacity=="undefined")d.cssBefore.opacity=1;d.cssBefore.display="block";if(d.slideResize&&e!==false&&c.cycleW>0)d.cssBefore.width=c.cycleW;if(d.slideResize&&f!==false&&c.cycleH>0)d.cssBefore.height=c.cycleH;d.cssAfter=d.cssAfter||{};d.cssAfter.display="none";a(b).css("zIndex",d.slideCount+(g===true?1:0));a(c).css("zIndex",d.slideCount+(g===true?0:1))};a.fn.cycle.custom=function(b,c,d,e,f,g){var h=a(b),i=a(c);var j=d.speedIn,k=d.speedOut,l=d.easeIn,m=d.easeOut;i.css(d.cssBefore);if(g){if(typeof g=="number")j=k=g;else j=k=1;l=m=null}var n=function(){i.animate(d.animIn,j,l,function(){e()})};h.animate(d.animOut,k,m,function(){h.css(d.cssAfter);if(!d.sync)n()});if(d.sync)n()};a.fn.cycle.transitions={fade:function(b,c,d){c.not(":eq("+d.currSlide+")").css("opacity",0);d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d);d.cssBefore.opacity=0});d.animIn={opacity:1};d.animOut={opacity:0};d.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return c};a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!a.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:b,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}})(jQuery);(function(a){"use strict";a.fn.cycle.transitions.shuffle=function(b,c,d){var e,f=b.css("overflow","visible").width();c.css({left:0,top:0});d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,true,true)});if(!d.speedAdjusted){d.speed=d.speed/2;d.speedAdjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-f,top:15};d.els=[];for(e=0;e<c.length;e++)d.els.push(c[e]);for(e=0;e<d.currSlide;e++)d.els.push(d.els.shift());d.fxFn=function(b,c,d,e,f){if(d.rev)f=!f;var g=f?a(b):a(c);a(c).css(d.cssBefore);var h=d.slideCount;g.animate(d.shuffle,d.speedIn,d.easeIn,function(){var c=a.fn.cycle.hopsFromLast(d,f);for(var i=0;i<c;i++){if(f)d.els.push(d.els.shift());else d.els.unshift(d.els.pop())}if(f){for(var j=0,k=d.els.length;j<k;j++)a(d.els[j]).css("z-index",k-j+h)}else{var l=a(b).css("z-index");g.css("z-index",parseInt(l,10)+1+h)}g.animate({left:0,top:0},d.speedOut,d.easeOut,function(){a(f?this:b).hide();if(e)e()})})};a.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0})}})(jQuery)
7
+
8
+ /*
9
+ * Flash Cards
10
+ * For unminimized version, see /js/plugins/
11
+ */
12
+ $(document).ready(function(){function a(){$(this).parent().find(".current").removeClass("current")}function b(){$(this).addClass("current")}$("#flipper").bind("click",function(){$(".card.current").toggleClass("flip")});$("#deck").cycle({after:b,before:a,fx:"shuffle",next:"#next",prev:"#prev",shuffle:{top:-300,left:20},speed:"fast",timeout:0});$(document).keydown(function(a){var b=a.keyCode||a.which;key={left:37,up:38,right:39,down:40,enter:13,space:32,questionMark:191};switch(b){case key.left:$("#deck").cycle("prev");a.preventDefault();break;case key.right:$("#deck").cycle("next");a.preventDefault();break;case key.up:case key.down:case key.enter:case key.space:$(".current").toggleClass("flip");a.preventDefault();break;case key.questionMark:$("#keyboard_shortcuts").fadeToggle();a.preventDefault();break}});$("#keyboard_shortcuts_toggle").click(function(){$("#keyboard_shortcuts").fadeToggle()})})
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
@@ -0,0 +1,62 @@
1
+ $(document).ready(function(){
2
+ // FLIP
3
+ $('#flipper').bind('click', function(){
4
+ $('.card.current').toggleClass('flip');
5
+ });
6
+
7
+ // CYCLE
8
+ $('#deck').cycle({
9
+ after: onAfter,
10
+ before: onBefore,
11
+ fx: 'shuffle',
12
+ next: '#next',
13
+ prev: '#prev',
14
+ shuffle: {
15
+ top: -300,
16
+ left: 20
17
+ },
18
+ speed: 'fast',
19
+ timeout: 0,
20
+ });
21
+ function onBefore(){
22
+ $(this).parent().find('.current').removeClass('current');
23
+ }
24
+ function onAfter(){
25
+ $(this).addClass('current');
26
+ }
27
+ // Keyboard Nav
28
+ $(document).keydown(function (e) {
29
+ var keyCode = e.keyCode || e.which;
30
+ key = {left: 37, up: 38, right: 39, down: 40, enter: 13, space: 32, questionMark: 191 };
31
+
32
+ switch (keyCode) {
33
+ case key.left:
34
+ $('#deck').cycle('prev');
35
+ e.preventDefault();
36
+ break;
37
+ case key.right:
38
+ $('#deck').cycle('next');
39
+ e.preventDefault();
40
+ break;
41
+ case key.up:
42
+ case key.down:
43
+ case key.enter:
44
+ case key.space:
45
+ $('.current').toggleClass('flip');
46
+ e.preventDefault();
47
+ break;
48
+ case key.questionMark:
49
+ $('#keyboard_shortcuts').fadeToggle();
50
+ e.preventDefault();
51
+ break;
52
+ }
53
+ });
54
+ $('#keyboard_shortcuts_toggle').click(function(){
55
+ $('#keyboard_shortcuts').fadeToggle();
56
+ });
57
+ });
58
+
59
+
60
+
61
+
62
+