From 013ba5611199189ceca458d344a1ee99a5ddd4d7 Mon Sep 17 00:00:00 2001 From: nccu Date: Thu, 19 Mar 2015 18:41:42 +0800 Subject: [PATCH] precompile fix and also impressionist fix --- app/templates/nccu/.DS_Store | Bin 6148 -> 0 bytes app/templates/nccu/._.DS_Store | Bin 4096 -> 0 bytes app/templates/nccu/assets/.DS_Store | Bin 10244 -> 0 bytes app/templates/nccu/assets/._.DS_Store | Bin 4096 -> 0 bytes .../nccu/assets/fonts/._entypo.dev.svg | Bin 4096 -> 0 bytes app/templates/nccu/assets/fonts/._entypo.eot | Bin 4096 -> 0 bytes app/templates/nccu/assets/fonts/._entypo.svg | Bin 4096 -> 0 bytes app/templates/nccu/assets/fonts/._entypo.ttf | Bin 4096 -> 0 bytes app/templates/nccu/assets/fonts/._entypo.woff | Bin 4096 -> 0 bytes .../nccu/assets/fonts/entypo.dev.svg | 0 app/templates/nccu/assets/fonts/entypo.eot | Bin app/templates/nccu/assets/fonts/entypo.svg | 0 app/templates/nccu/assets/fonts/entypo.ttf | Bin app/templates/nccu/assets/fonts/entypo.woff | Bin app/templates/nccu/assets/images/._tag.png | Bin 4096 -> 0 bytes app/templates/nccu/assets/images/tag.png | Bin .../nccu/assets/javascripts/bootstrap.js | 12 - .../assets/javascripts/bootstrap/affix.js | 137 ---- .../assets/javascripts/bootstrap/alert.js | 88 --- .../assets/javascripts/bootstrap/button.js | 107 --- .../assets/javascripts/bootstrap/carousel.js | 205 ------ .../assets/javascripts/bootstrap/collapse.js | 170 ----- .../assets/javascripts/bootstrap/dropdown.js | 147 ----- .../assets/javascripts/bootstrap/modal.js | 243 ------- .../assets/javascripts/bootstrap/popover.js | 110 ---- .../assets/javascripts/bootstrap/scrollspy.js | 153 ----- .../nccu/assets/javascripts/bootstrap/tab.js | 125 ---- .../assets/javascripts/bootstrap/tooltip.js | 399 ----------- .../javascripts/bootstrap/transition.js | 48 -- .../nccu/assets/stylesheets/.DS_Store | Bin 6148 -> 0 bytes .../nccu/assets/stylesheets/._.DS_Store | Bin 4096 -> 0 bytes .../assets/stylesheets/bootstrap/_alerts.scss | 67 -- .../assets/stylesheets/bootstrap/_badges.scss | 55 -- .../stylesheets/bootstrap/_breadcrumbs.scss | 26 - .../stylesheets/bootstrap/_button-groups.scss | 226 ------- .../stylesheets/bootstrap/_buttons.scss | 159 ----- .../stylesheets/bootstrap/_carousel.scss | 232 ------- .../assets/stylesheets/bootstrap/_close.scss | 35 - .../assets/stylesheets/bootstrap/_code.scss | 63 -- .../bootstrap/_component-animations.scss | 29 - .../stylesheets/bootstrap/_dropdowns.scss | 213 ------ .../assets/stylesheets/bootstrap/_forms.scss | 436 ------------ .../stylesheets/bootstrap/_glyphicons.scss | 233 ------- .../assets/stylesheets/bootstrap/_grid.scss | 84 --- .../stylesheets/bootstrap/_input-groups.scss | 162 ----- .../stylesheets/bootstrap/_jumbotron.scss | 44 -- .../assets/stylesheets/bootstrap/_labels.scss | 64 -- .../stylesheets/bootstrap/_list-group.scss | 110 ---- .../assets/stylesheets/bootstrap/_media.scss | 56 -- .../assets/stylesheets/bootstrap/_modals.scss | 139 ---- .../assets/stylesheets/bootstrap/_navbar.scss | 620 ------------------ .../assets/stylesheets/bootstrap/_navs.scss | 242 ------- .../stylesheets/bootstrap/_normalize.scss | 423 ------------ .../assets/stylesheets/bootstrap/_pager.scss | 55 -- .../stylesheets/bootstrap/_pagination.scss | 79 --- .../assets/stylesheets/bootstrap/_panels.scss | 241 ------- .../stylesheets/bootstrap/_popovers.scss | 133 ---- .../assets/stylesheets/bootstrap/_print.scss | 101 --- .../stylesheets/bootstrap/_progress-bars.scss | 80 --- .../bootstrap/_responsive-utilities.scss | 74 --- .../stylesheets/bootstrap/_scaffolding.scss | 134 ---- .../assets/stylesheets/bootstrap/_tables.scss | 233 ------- .../assets/stylesheets/bootstrap/_theme.scss | 247 ------- .../stylesheets/bootstrap/_thumbnails.scss | 38 -- .../stylesheets/bootstrap/_tooltip.scss | 95 --- .../assets/stylesheets/bootstrap/_type.scss | 284 -------- .../stylesheets/bootstrap/_utilities.scss | 56 -- .../assets/stylesheets/bootstrap/_wells.scss | 29 - .../stylesheets/bootstrap/bootstrap.scss | 49 -- .../fontawesome/_bordered-pulled.scss | 16 - .../assets/stylesheets/fontawesome/_core.scss | 12 - .../stylesheets/fontawesome/_fixed-width.scss | 6 - .../stylesheets/fontawesome/_icons.scss | 506 -------------- .../stylesheets/fontawesome/_larger.scss | 13 - .../assets/stylesheets/fontawesome/_list.scss | 19 - .../stylesheets/fontawesome/_mixins.scss | 20 - .../assets/stylesheets/fontawesome/_path.scss | 14 - .../fontawesome/_rotated-flipped.scss | 9 - .../stylesheets/fontawesome/_spinning.scss | 32 - .../stylesheets/fontawesome/_stacked.scss | 20 - .../stylesheets/fontawesome/_variables.scss | 515 --------------- .../stylesheets/fontawesome/font-awesome.scss | 17 - .../assets/stylesheets/template/.DS_Store | Bin 6148 -> 0 bytes .../assets/stylesheets/template/._.DS_Store | Bin 4096 -> 0 bytes .../{bootstrap => template}/_mixins.scss | 0 .../{bootstrap => template}/_variables.scss | 0 .../stylesheets/template/base/_default.scss | 2 + .../stylesheets/template/base/_icon.scss | 2 + .../stylesheets/template/base/_mixins.scss | 2 + .../template/base/_orbitbar-override.scss | 2 + .../template/base/_pagination.scss | 2 + .../stylesheets/template/base/_reset.scss | 2 + .../stylesheets/template/base/_tab.scss | 2 + .../stylesheets/template/base/_unity.scss | 2 + .../stylesheets/template/base/_utilities.scss | 2 + .../assets/stylesheets/template/initial.scss | 8 + .../stylesheets/template/layout/content.scss | 2 + .../stylesheets/template/layout/footer.scss | 2 + .../stylesheets/template/layout/header.scss | 2 + .../stylesheets/template/layout/slide.scss | 2 + .../template/modules/ad_banner.scss | 2 + .../template/modules/announcement.scss | 2 + .../template/modules/archives.scss | 2 + .../stylesheets/template/modules/faq.scss | 2 + .../stylesheets/template/modules/gallery.scss | 2 + .../stylesheets/template/modules/member.scss | 2 + .../stylesheets/template/modules/menu.scss | 2 + .../stylesheets/template/modules/news.scss | 2 + .../template/modules/personal_plugin.scss | 2 + .../template/modules/web_resource.scss | 2 + .../assets/stylesheets/template/template.scss | 9 +- .../template/widget/breadcrumb.scss | 2 + .../stylesheets/template/widget/sitemenu.scss | 2 + app/templates/nccu/partial/_head.html.erb | 11 +- config/initializers/template.rb | 12 +- lib/orbit_model/impression.rb | 2 +- 116 files changed, 72 insertions(+), 8809 deletions(-) delete mode 100644 app/templates/nccu/.DS_Store delete mode 100644 app/templates/nccu/._.DS_Store delete mode 100644 app/templates/nccu/assets/.DS_Store delete mode 100644 app/templates/nccu/assets/._.DS_Store delete mode 100755 app/templates/nccu/assets/fonts/._entypo.dev.svg delete mode 100755 app/templates/nccu/assets/fonts/._entypo.eot delete mode 100755 app/templates/nccu/assets/fonts/._entypo.svg delete mode 100755 app/templates/nccu/assets/fonts/._entypo.ttf delete mode 100755 app/templates/nccu/assets/fonts/._entypo.woff mode change 100755 => 100644 app/templates/nccu/assets/fonts/entypo.dev.svg mode change 100755 => 100644 app/templates/nccu/assets/fonts/entypo.eot mode change 100755 => 100644 app/templates/nccu/assets/fonts/entypo.svg mode change 100755 => 100644 app/templates/nccu/assets/fonts/entypo.ttf mode change 100755 => 100644 app/templates/nccu/assets/fonts/entypo.woff delete mode 100755 app/templates/nccu/assets/images/._tag.png mode change 100755 => 100644 app/templates/nccu/assets/images/tag.png delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/affix.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/alert.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/button.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/carousel.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/collapse.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/dropdown.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/modal.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/popover.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/scrollspy.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/tab.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/tooltip.js delete mode 100644 app/templates/nccu/assets/javascripts/bootstrap/transition.js delete mode 100644 app/templates/nccu/assets/stylesheets/.DS_Store delete mode 100644 app/templates/nccu/assets/stylesheets/._.DS_Store delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_alerts.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_badges.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_breadcrumbs.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_button-groups.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_buttons.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_carousel.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_close.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_code.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_component-animations.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_dropdowns.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_forms.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_glyphicons.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_grid.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_input-groups.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_jumbotron.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_labels.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_list-group.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_media.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_modals.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_navbar.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_navs.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_normalize.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_pager.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_pagination.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_panels.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_popovers.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_print.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_progress-bars.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_responsive-utilities.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_scaffolding.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_tables.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_theme.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_thumbnails.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_tooltip.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_type.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_utilities.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/_wells.scss delete mode 100644 app/templates/nccu/assets/stylesheets/bootstrap/bootstrap.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_bordered-pulled.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_core.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_fixed-width.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_icons.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_larger.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_list.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_mixins.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_path.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_rotated-flipped.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_spinning.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_stacked.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/_variables.scss delete mode 100644 app/templates/nccu/assets/stylesheets/fontawesome/font-awesome.scss delete mode 100644 app/templates/nccu/assets/stylesheets/template/.DS_Store delete mode 100644 app/templates/nccu/assets/stylesheets/template/._.DS_Store rename app/templates/nccu/assets/stylesheets/{bootstrap => template}/_mixins.scss (100%) rename app/templates/nccu/assets/stylesheets/{bootstrap => template}/_variables.scss (100%) mode change 100755 => 100644 app/templates/nccu/assets/stylesheets/template/base/_icon.scss create mode 100644 app/templates/nccu/assets/stylesheets/template/initial.scss diff --git a/app/templates/nccu/.DS_Store b/app/templates/nccu/.DS_Store deleted file mode 100644 index c4749b0ce947d054aba285b58c72b1cde6e0cf72..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5Z-O8rWHy=MZrt1LJ!rd^%!eC3WZ9GSg8pKbfF}rNexm8Ir|P?{C^J7 zhwx22I{Ra=R!@RRnF+Js>||%dd<#1nLI|x4oDD*BLWl;+F_nek8{zM{PDo05C?F{8 z5t6`;f}Y*=?TOXs_>T>#`s$7GG&9otc@P)3P~`d`@4;pVm8m zR1d9i5LB%GiI_3RwUu47!p?_%?{3!$P D3TI!8 diff --git a/app/templates/nccu/._.DS_Store b/app/templates/nccu/._.DS_Store deleted file mode 100644 index 181204327fdbbcd060fd00f34c957c884fe58d88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nf1 zz!3ihqJyCVtD;fC(GVC7fzc2c4S~@R7!85Z5Eu=C(GVC7fzc2c4S~@RpmGQ>0?h+q zFpvw$$ShVUN-fSWElN&RNXswER>;gNNzE(C%+E{A$*EMxNlhzJNXkjf%LaCJp}K}N Ph3bE}S7aFE{{II6o~s?{ diff --git a/app/templates/nccu/assets/.DS_Store b/app/templates/nccu/assets/.DS_Store deleted file mode 100644 index d9411dc35048cbf67106b508c16bfdb0d59ef812..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeHMU2GLa6h2>R;a*nCmLCfjnqDAMlqOz;@@ItGKY;?$(3ZCRUH9I*(2d*O>)mY& zHjVW~4H|zEV`2Y0^<9SFk%3(+O!M zb*mB32wabVh~3L*ANk}_I3|9-nk~3a5T;TWQ8KBtZ1R*?d@7gnsb)p_p0*x;pe?k* zzM#P>?vk35x3f{d)e3t?`t82&j`pqW4#ytIn6nyvFSH!bE?(ohyVLRV{y>A@=jDUl zZEC$vCm;4?%-O9)yPsWKEzjQJ1Wwj*o$z3sODvu-D+dRcuTIq_m)|#3n;cxVin}XT zriO;h!?D=ByX)$=b{B>Y9X)pZjW^#q@!97J1VkSanmG=Xv#d`hhkD7P{bY~9jCg4-6N2&u8^?g+2K}un(Nl721e72CCW>K9OEf>YVdln78Pn_w z?CrK|g-*ZSWQBH+F{cO2pG`U6i+$duV z6FR=v-4)sgLSYjNjWKoY4E$o)C>QH;czrc%hM>;2f^ZIY*u{WlJbtpga(?ozd+uGa z`hoM)&59W_XBoy$CY={L`y9L2F(8=NZ3Q{o%RAow&VE5V*KYT$Ub_Od@woJwGdE%E z&hvJ+`g!4(H&4furD|>>u}fGQi#E6USWG%BSeP){1Kzx8MH3g-7)JXe%zZP67F}9v zBsyFxYrAGXuG~_~j6`R@+Pk?q8myaTB)W2bZ!d2;h{o2eO(gb;$8NELa9hFlcuQZ3 zXRlkIuIDXH^j_V)Z*+xz2Vokf!$buVSd1Dh!7{AGYOKLpG-4xKuo+v>fnC^x zy~v;k1r!k=#1NjuQ+OIL;&mLwF&xJ`co(1GEWX8e_#WqQ2|wd9uBg40j2!M3rH{0@ z%DwSCjuMt7FWs2O)f+Z$n%&ZP%kubQxnl3^J1Zrf*Q{$8<-|B5TuVpEK}9l2z7cXs zeve`FdFJ@M`Bg@B2XoXuFcE>wDdJSb8tzXeO`bjeN zD*cHvOhqM<%+Xrr=Q^aBolR)QLukczw4t5(nSq5Ya&X}>OCM#P4l+w0$1tA2Av}xc z@H}3?D|i)$@fwcc1Ww{@oWf~*fDiEzKE@e*gA3#Mx_N}DO5#VB1_gXIA0$^?M%2Tt zt*>f{PjqXI#Y}4&0gZr0KqH_L&{{Mf)|9=4yCpzW; diff --git a/app/templates/nccu/assets/._.DS_Store b/app/templates/nccu/assets/._.DS_Store deleted file mode 100644 index 722d1229d1be2dbdcd841573f9be3fd9c1ab544e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIk*Y|peR=07!nf1 zz!3ilqJyCVtD;fC(GVC7fzc2c4S~@R7!85Z5Eu=C(GVC7fzc2c4S~@RpmGQ>0?h+q zFpvw$$ShVUN-fSWElN&RNXswER>;gNNzE(C%+E{A$*EMxNlhzJNXkjf%LaCJp}K}N Ph3bE}S7aFE{{II6e_)?3Z)&e~-^vLxw3U%>b9=Fw;J zMQWB-sa^z6J z9r%-3W|&5!<~l}}DxI^evQ7zRs***qUY5QgUj@uLVOVwdclbL6;>J$5(3wf+-3%lsz) zNZcb)qK(+4m=~6vncabzr+Z=l^Z@n%#xi9O5qn}Abu~D0Cj{s%-R<(;2Y~0h_z&I0 z@gu;Dtvle|eSiJc;<`T1aIE- zBr=(8hC*Ck^L}{6F9tjm;yzEb)UB9c5}|%UEk-I`R9IUhlumLx9q@qng)|0TDO25p zdu>Y5g-CYU>6B=mhQ{efgjIv w!!#PT&?&M^>4N38bxtr>wJgh)m6%zUl(H_I7v9Bv{yWpp{lB}Y5QgUj@uLVsY7F)u7TGrI#bPxr#^@gD2|3}wphBlgJFYHM)dP6*I>cel$s9{`^3;y-j9 z#}5FL(^Ut&x$iH(T0EDp>u0H|xNMpdd4*O!Nh|xsaByp}8ck8-jaHR`q$zV_gW%O0 zA4Mj!O<#zME8Yz+`FW3rLfqwvmUOb+;qrb^N zQa7{;@gm-On1N;Yo!Nnz=k~(>=>hBkOk~0yL-x$J(dOXDodBTs;clmUp8%fk-haex z6g>gV&o>>ga^K&6wRlc%^B0LKxvc8~d5KoONGnJAWPES2oGwt~omQoRxGpkd`~7!s zb`qM@)*~UVZulU$=9fbr2=S1`TIxnjF%D6`q84M7EK97c5lY9Ioeg=P4}>%ZT`E;= z!Bv}Dack4VntT0jx`|ClnI_B0vO)01+SpM1Tko0U|&Ih`rmrIjb->A9pZkBeA3?ZSd;-cwO-ld( diff --git a/app/templates/nccu/assets/fonts/entypo.dev.svg b/app/templates/nccu/assets/fonts/entypo.dev.svg old mode 100755 new mode 100644 diff --git a/app/templates/nccu/assets/fonts/entypo.eot b/app/templates/nccu/assets/fonts/entypo.eot old mode 100755 new mode 100644 diff --git a/app/templates/nccu/assets/fonts/entypo.svg b/app/templates/nccu/assets/fonts/entypo.svg old mode 100755 new mode 100644 diff --git a/app/templates/nccu/assets/fonts/entypo.ttf b/app/templates/nccu/assets/fonts/entypo.ttf old mode 100755 new mode 100644 diff --git a/app/templates/nccu/assets/fonts/entypo.woff b/app/templates/nccu/assets/fonts/entypo.woff old mode 100755 new mode 100644 diff --git a/app/templates/nccu/assets/images/._tag.png b/app/templates/nccu/assets/images/._tag.png deleted file mode 100755 index a348e6563adac30b2f24da250ce58ccdbb5e9355..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWxd1=+Gz%wBU!WKc z;207T#J~{$0iuJU0*A6u;n5Hn4S~@R7!85Z5Eu=C(GVC7fzc2c4S~@R7!85Z5TI%Z zFak{jVK9&j$;d2LC`v8PFD*(=RY=P(%2vqCD@n~O$;{77%*m-#$Vp8rQAo;3%*zJ$ Ug`v8JG==JaxL0Ht= scrollHeight - offsetBottom) ? 'bottom' : - offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false - - if (this.affixed === affix) return - if (this.unpin) this.$element.css('top', '') - - var affixType = 'affix' + (affix ? '-' + affix : '') - var e = $.Event(affixType + '.bs.affix') - - this.$element.trigger(e) - - if (e.isDefaultPrevented()) return - - this.affixed = affix - this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null - - this.$element - .removeClass(Affix.RESET) - .addClass(affixType) - .trigger($.Event(affixType.replace('affix', 'affixed'))) - - if (affix == 'bottom') { - this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() }) - } - } - - - // AFFIX PLUGIN DEFINITION - // ======================= - - var old = $.fn.affix - - $.fn.affix = function (option) { - return this.each(function () { - var $this = $(this) - var data = $this.data('bs.affix') - var options = typeof option == 'object' && option - - if (!data) $this.data('bs.affix', (data = new Affix(this, options))) - if (typeof option == 'string') data[option]() - }) - } - - $.fn.affix.Constructor = Affix - - - // AFFIX NO CONFLICT - // ================= - - $.fn.affix.noConflict = function () { - $.fn.affix = old - return this - } - - - // AFFIX DATA-API - // ============== - - $(window).on('load', function () { - $('[data-spy="affix"]').each(function () { - var $spy = $(this) - var data = $spy.data() - - data.offset = data.offset || {} - - if (data.offsetBottom) data.offset.bottom = data.offsetBottom - if (data.offsetTop) data.offset.top = data.offsetTop - - $spy.affix(data) - }) - }) - -}(jQuery); diff --git a/app/templates/nccu/assets/javascripts/bootstrap/alert.js b/app/templates/nccu/assets/javascripts/bootstrap/alert.js deleted file mode 100644 index 516fe4f..0000000 --- a/app/templates/nccu/assets/javascripts/bootstrap/alert.js +++ /dev/null @@ -1,88 +0,0 @@ -/* ======================================================================== - * Bootstrap: alert.js v3.1.1 - * http://getbootstrap.com/javascript/#alerts - * ======================================================================== - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // ALERT CLASS DEFINITION - // ====================== - - var dismiss = '[data-dismiss="alert"]' - var Alert = function (el) { - $(el).on('click', dismiss, this.close) - } - - Alert.prototype.close = function (e) { - var $this = $(this) - var selector = $this.attr('data-target') - - if (!selector) { - selector = $this.attr('href') - selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 - } - - var $parent = $(selector) - - if (e) e.preventDefault() - - if (!$parent.length) { - $parent = $this.hasClass('alert') ? $this : $this.parent() - } - - $parent.trigger(e = $.Event('close.bs.alert')) - - if (e.isDefaultPrevented()) return - - $parent.removeClass('in') - - function removeElement() { - $parent.trigger('closed.bs.alert').remove() - } - - $.support.transition && $parent.hasClass('fade') ? - $parent - .one($.support.transition.end, removeElement) - .emulateTransitionEnd(150) : - removeElement() - } - - - // ALERT PLUGIN DEFINITION - // ======================= - - var old = $.fn.alert - - $.fn.alert = function (option) { - return this.each(function () { - var $this = $(this) - var data = $this.data('bs.alert') - - if (!data) $this.data('bs.alert', (data = new Alert(this))) - if (typeof option == 'string') data[option].call($this) - }) - } - - $.fn.alert.Constructor = Alert - - - // ALERT NO CONFLICT - // ================= - - $.fn.alert.noConflict = function () { - $.fn.alert = old - return this - } - - - // ALERT DATA-API - // ============== - - $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) - -}(jQuery); diff --git a/app/templates/nccu/assets/javascripts/bootstrap/button.js b/app/templates/nccu/assets/javascripts/bootstrap/button.js deleted file mode 100644 index f4d8d8b..0000000 --- a/app/templates/nccu/assets/javascripts/bootstrap/button.js +++ /dev/null @@ -1,107 +0,0 @@ -/* ======================================================================== - * Bootstrap: button.js v3.1.1 - * http://getbootstrap.com/javascript/#buttons - * ======================================================================== - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // BUTTON PUBLIC CLASS DEFINITION - // ============================== - - var Button = function (element, options) { - this.$element = $(element) - this.options = $.extend({}, Button.DEFAULTS, options) - this.isLoading = false - } - - Button.DEFAULTS = { - loadingText: 'loading...' - } - - Button.prototype.setState = function (state) { - var d = 'disabled' - var $el = this.$element - var val = $el.is('input') ? 'val' : 'html' - var data = $el.data() - - state = state + 'Text' - - if (!data.resetText) $el.data('resetText', $el[val]()) - - $el[val](data[state] || this.options[state]) - - // push to event loop to allow forms to submit - setTimeout($.proxy(function () { - if (state == 'loadingText') { - this.isLoading = true - $el.addClass(d).attr(d, d) - } else if (this.isLoading) { - this.isLoading = false - $el.removeClass(d).removeAttr(d) - } - }, this), 0) - } - - Button.prototype.toggle = function () { - var changed = true - var $parent = this.$element.closest('[data-toggle="buttons"]') - - if ($parent.length) { - var $input = this.$element.find('input') - if ($input.prop('type') == 'radio') { - if ($input.prop('checked') && this.$element.hasClass('active')) changed = false - else $parent.find('.active').removeClass('active') - } - if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change') - } - - if (changed) this.$element.toggleClass('active') - } - - - // BUTTON PLUGIN DEFINITION - // ======================== - - var old = $.fn.button - - $.fn.button = function (option) { - return this.each(function () { - var $this = $(this) - var data = $this.data('bs.button') - var options = typeof option == 'object' && option - - if (!data) $this.data('bs.button', (data = new Button(this, options))) - - if (option == 'toggle') data.toggle() - else if (option) data.setState(option) - }) - } - - $.fn.button.Constructor = Button - - - // BUTTON NO CONFLICT - // ================== - - $.fn.button.noConflict = function () { - $.fn.button = old - return this - } - - - // BUTTON DATA-API - // =============== - - $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) { - var $btn = $(e.target) - if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') - $btn.button('toggle') - e.preventDefault() - }) - -}(jQuery); diff --git a/app/templates/nccu/assets/javascripts/bootstrap/carousel.js b/app/templates/nccu/assets/javascripts/bootstrap/carousel.js deleted file mode 100644 index 19e9af1..0000000 --- a/app/templates/nccu/assets/javascripts/bootstrap/carousel.js +++ /dev/null @@ -1,205 +0,0 @@ -/* ======================================================================== - * Bootstrap: carousel.js v3.1.1 - * http://getbootstrap.com/javascript/#carousel - * ======================================================================== - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // CAROUSEL CLASS DEFINITION - // ========================= - - var Carousel = function (element, options) { - this.$element = $(element) - this.$indicators = this.$element.find('.carousel-indicators') - this.options = options - this.paused = - this.sliding = - this.interval = - this.$active = - this.$items = null - - this.options.pause == 'hover' && this.$element - .on('mouseenter', $.proxy(this.pause, this)) - .on('mouseleave', $.proxy(this.cycle, this)) - } - - Carousel.DEFAULTS = { - interval: 5000, - pause: 'hover', - wrap: true - } - - Carousel.prototype.cycle = function (e) { - e || (this.paused = false) - - this.interval && clearInterval(this.interval) - - this.options.interval - && !this.paused - && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) - - return this - } - - Carousel.prototype.getActiveIndex = function () { - this.$active = this.$element.find('.item.active') - this.$items = this.$active.parent().children() - - return this.$items.index(this.$active) - } - - Carousel.prototype.to = function (pos) { - var that = this - var activeIndex = this.getActiveIndex() - - if (pos > (this.$items.length - 1) || pos < 0) return - - if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) - if (activeIndex == pos) return this.pause().cycle() - - return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos])) - } - - Carousel.prototype.pause = function (e) { - e || (this.paused = true) - - if (this.$element.find('.next, .prev').length && $.support.transition) { - this.$element.trigger($.support.transition.end) - this.cycle(true) - } - - this.interval = clearInterval(this.interval) - - return this - } - - Carousel.prototype.next = function () { - if (this.sliding) return - return this.slide('next') - } - - Carousel.prototype.prev = function () { - if (this.sliding) return - return this.slide('prev') - } - - Carousel.prototype.slide = function (type, next) { - var $active = this.$element.find('.item.active') - var $next = next || $active[type]() - var isCycling = this.interval - var direction = type == 'next' ? 'left' : 'right' - var fallback = type == 'next' ? 'first' : 'last' - var that = this - - if (!$next.length) { - if (!this.options.wrap) return - $next = this.$element.find('.item')[fallback]() - } - - if ($next.hasClass('active')) return this.sliding = false - - var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction }) - this.$element.trigger(e) - if (e.isDefaultPrevented()) return - - this.sliding = true - - isCycling && this.pause() - - if (this.$indicators.length) { - this.$indicators.find('.active').removeClass('active') - this.$element.one('slid.bs.carousel', function () { - var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()]) - $nextIndicator && $nextIndicator.addClass('active') - }) - } - - if ($.support.transition && this.$element.hasClass('slide')) { - $next.addClass(type) - $next[0].offsetWidth // force reflow - $active.addClass(direction) - $next.addClass(direction) - $active - .one($.support.transition.end, function () { - $next.removeClass([type, direction].join(' ')).addClass('active') - $active.removeClass(['active', direction].join(' ')) - that.sliding = false - setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0) - }) - .emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000) - } else { - $active.removeClass('active') - $next.addClass('active') - this.sliding = false - this.$element.trigger('slid.bs.carousel') - } - - isCycling && this.cycle() - - return this - } - - - // CAROUSEL PLUGIN DEFINITION - // ========================== - - var old = $.fn.carousel - - $.fn.carousel = function (option) { - return this.each(function () { - var $this = $(this) - var data = $this.data('bs.carousel') - var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) - var action = typeof option == 'string' ? option : options.slide - - if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) - if (typeof option == 'number') data.to(option) - else if (action) data[action]() - else if (options.interval) data.pause().cycle() - }) - } - - $.fn.carousel.Constructor = Carousel - - - // CAROUSEL NO CONFLICT - // ==================== - - $.fn.carousel.noConflict = function () { - $.fn.carousel = old - return this - } - - - // CAROUSEL DATA-API - // ================= - - $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { - var $this = $(this), href - var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 - var options = $.extend({}, $target.data(), $this.data()) - var slideIndex = $this.attr('data-slide-to') - if (slideIndex) options.interval = false - - $target.carousel(options) - - if (slideIndex = $this.attr('data-slide-to')) { - $target.data('bs.carousel').to(slideIndex) - } - - e.preventDefault() - }) - - $(window).on('load', function () { - $('[data-ride="carousel"]').each(function () { - var $carousel = $(this) - $carousel.carousel($carousel.data()) - }) - }) - -}(jQuery); diff --git a/app/templates/nccu/assets/javascripts/bootstrap/collapse.js b/app/templates/nccu/assets/javascripts/bootstrap/collapse.js deleted file mode 100644 index 7130282..0000000 --- a/app/templates/nccu/assets/javascripts/bootstrap/collapse.js +++ /dev/null @@ -1,170 +0,0 @@ -/* ======================================================================== - * Bootstrap: collapse.js v3.1.1 - * http://getbootstrap.com/javascript/#collapse - * ======================================================================== - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // COLLAPSE PUBLIC CLASS DEFINITION - // ================================ - - var Collapse = function (element, options) { - this.$element = $(element) - this.options = $.extend({}, Collapse.DEFAULTS, options) - this.transitioning = null - - if (this.options.parent) this.$parent = $(this.options.parent) - if (this.options.toggle) this.toggle() - } - - Collapse.DEFAULTS = { - toggle: true - } - - Collapse.prototype.dimension = function () { - var hasWidth = this.$element.hasClass('width') - return hasWidth ? 'width' : 'height' - } - - Collapse.prototype.show = function () { - if (this.transitioning || this.$element.hasClass('in')) return - - var startEvent = $.Event('show.bs.collapse') - this.$element.trigger(startEvent) - if (startEvent.isDefaultPrevented()) return - - var actives = this.$parent && this.$parent.find('> .panel > .in') - - if (actives && actives.length) { - var hasData = actives.data('bs.collapse') - if (hasData && hasData.transitioning) return - actives.collapse('hide') - hasData || actives.data('bs.collapse', null) - } - - var dimension = this.dimension() - - this.$element - .removeClass('collapse') - .addClass('collapsing') - [dimension](0) - - this.transitioning = 1 - - var complete = function () { - this.$element - .removeClass('collapsing') - .addClass('collapse in') - [dimension]('auto') - this.transitioning = 0 - this.$element.trigger('shown.bs.collapse') - } - - if (!$.support.transition) return complete.call(this) - - var scrollSize = $.camelCase(['scroll', dimension].join('-')) - - this.$element - .one($.support.transition.end, $.proxy(complete, this)) - .emulateTransitionEnd(350) - [dimension](this.$element[0][scrollSize]) - } - - Collapse.prototype.hide = function () { - if (this.transitioning || !this.$element.hasClass('in')) return - - var startEvent = $.Event('hide.bs.collapse') - this.$element.trigger(startEvent) - if (startEvent.isDefaultPrevented()) return - - var dimension = this.dimension() - - this.$element - [dimension](this.$element[dimension]()) - [0].offsetHeight - - this.$element - .addClass('collapsing') - .removeClass('collapse') - .removeClass('in') - - this.transitioning = 1 - - var complete = function () { - this.transitioning = 0 - this.$element - .trigger('hidden.bs.collapse') - .removeClass('collapsing') - .addClass('collapse') - } - - if (!$.support.transition) return complete.call(this) - - this.$element - [dimension](0) - .one($.support.transition.end, $.proxy(complete, this)) - .emulateTransitionEnd(350) - } - - Collapse.prototype.toggle = function () { - this[this.$element.hasClass('in') ? 'hide' : 'show']() - } - - - // COLLAPSE PLUGIN DEFINITION - // ========================== - - var old = $.fn.collapse - - $.fn.collapse = function (option) { - return this.each(function () { - var $this = $(this) - var data = $this.data('bs.collapse') - var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) - - if (!data && options.toggle && option == 'show') option = !option - if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) - if (typeof option == 'string') data[option]() - }) - } - - $.fn.collapse.Constructor = Collapse - - - // COLLAPSE NO CONFLICT - // ==================== - - $.fn.collapse.noConflict = function () { - $.fn.collapse = old - return this - } - - - // COLLAPSE DATA-API - // ================= - - $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) { - var $this = $(this), href - var target = $this.attr('data-target') - || e.preventDefault() - || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 - var $target = $(target) - var data = $target.data('bs.collapse') - var option = data ? 'toggle' : $this.data() - var parent = $this.attr('data-parent') - var $parent = parent && $(parent) - - if (!data || !data.transitioning) { - if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addClass('collapsed') - $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed') - } - - $target.collapse(option) - }) - -}(jQuery); diff --git a/app/templates/nccu/assets/javascripts/bootstrap/dropdown.js b/app/templates/nccu/assets/javascripts/bootstrap/dropdown.js deleted file mode 100644 index 43d7ae3..0000000 --- a/app/templates/nccu/assets/javascripts/bootstrap/dropdown.js +++ /dev/null @@ -1,147 +0,0 @@ -/* ======================================================================== - * Bootstrap: dropdown.js v3.1.1 - * http://getbootstrap.com/javascript/#dropdowns - * ======================================================================== - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // DROPDOWN CLASS DEFINITION - // ========================= - - var backdrop = '.dropdown-backdrop' - var toggle = '[data-toggle=dropdown]' - var Dropdown = function (element) { - $(element).on('click.bs.dropdown', this.toggle) - } - - Dropdown.prototype.toggle = function (e) { - var $this = $(this) - - if ($this.is('.disabled, :disabled')) return - - var $parent = getParent($this) - var isActive = $parent.hasClass('open') - - clearMenus() - - if (!isActive) { - if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { - // if mobile we use a backdrop because click events don't delegate - $('