├── .github
├── ISSUE_TEMPLATE
│ └── Bug_Feature_Docs.md
├── PULL_REQUEST_TEMPLATE.md
├── config.yml
├── issues_labeler.yml
└── workflows
│ ├── Auto_Issue_Closer.yml
│ ├── Auto_message_on_creatingissues.yml
│ ├── Auto_message_on_pr_merge.yml
│ ├── Auto_message_on_pr_open.yml
│ ├── Issue_labeler.yml
│ ├── greetings.yml
│ ├── issue-labeler.yml
│ └── pr-labeler.yml
├── .gitignore
├── CES-Team-Members.md
├── Event.md
├── Gemfile
├── LICENSE
├── README.md
├── _config.yml
├── app.js
├── ces.png
├── countdown
├── index.html
├── script.js
└── style.css
├── css
├── animate.css
├── bootstrap.css
├── bootstrap.css.map
├── flexslider.css
├── icomoon.css
├── magnific-popup.css
├── owl.carousel.min.css
├── owl.theme.default.min.css
├── style.css
└── style.css.map
├── fonts
└── icomoon
│ ├── icomoon.eot
│ ├── icomoon.svg
│ ├── icomoon.ttf
│ └── icomoon.woff
├── img
├── 1.jpg
├── 10.jpg
├── 1st.jpg
├── 2.jpg
├── 2nd.jpg
├── 3rd.jpg
├── 4.jpg
├── 5.jpg
├── 6.jpg
├── 7.jpg
├── 8.jpg
├── 9.jpg
├── Akriti.jpeg
├── Ayushi.jpeg
├── Namita.jpg
├── arpit.jpg
├── ces2.png
├── favicon-32x32.png
├── logo3.png
├── shubhum.jpg
├── swati.jpg
├── websitelayout1.png
├── websitelayout2.png
├── websitelayout3.png
├── websitelayout4.png
└── websitelayout5.png
├── index.html
├── js
├── bootstrap.min.js
├── google_map.js
├── jquery.countTo.js
├── jquery.easing.1.3.js
├── jquery.magnific-popup.min.js
├── jquery.min.js
├── jquery.stellar.min.js
├── jquery.waypoints.min.js
├── magnific-popup-options.js
├── main.js
├── modernizr-2.6.2.min.js
├── owl.carousel.min.js
├── respond.min.js
└── simplyCountdown.js
├── particles.js
└── style.css
/.github/ISSUE_TEMPLATE/Bug_Feature_Docs.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Improve Us
3 | about: "Improve us by suggesting changes "
4 | title: ""
5 | labels: ""
6 | assignees: ""
7 | ---
8 |
9 | ## Issue Type:
10 |
11 | [ ] Bug Report
12 | [ ] Feature Request
13 | [ ] Documentaion
14 |
15 | ## **Describe the bug**
16 |
17 | - A clear and concise description of what the bug is.
18 |
19 | ## **Possible solution**
20 |
21 | - Describe the solution you thought of.
22 |
23 | ## **Screenshots**
24 |
25 | - If applicable, add screenshots to help explain your problem.
26 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | # Description
2 |
3 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4 |
5 | Fixes # (issue no.)
6 |
7 |
8 |
9 | ## Type of change
10 |
11 |
12 |
13 | - [ ] Bug fix (non-breaking change which fixes an issue)
14 | - [ ] New feature (non-breaking change which adds functionality)
15 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16 | - [ ] This change requires a documentation update
17 |
18 | # Explain the Testing instructions
19 |
20 | **Test Configuration**:
21 |
22 | - Operating system:
23 | - Version:
24 | - Text-editors used:
25 |
26 | # Checklist:
27 |
28 |
29 |
30 | - [ ] My code follows the style guidelines of this project
31 | - [ ] I have performed a self-review of my own code
32 | - [ ] I have commented my code, particularly in hard-to-understand areas
33 | - [ ] I have made corresponding changes to the documentation
34 | - [ ] My changes generate no new warnings
35 | - [ ] I have added tests that prove my fix is effective or that my feature works
36 | - [ ] New and existing unit tests pass locally with my changes
37 | - [ ] Any dependent changes have been merged and published in downstream modules
38 |
39 | # ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
40 |
--------------------------------------------------------------------------------
/.github/config.yml:
--------------------------------------------------------------------------------
1 | # Configuration for welcome - https://github.com/behaviorbot/welcome
2 |
3 |
4 | # Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
5 | # Comment to be posted to on first time issues
6 |
7 | newIssueWelcomeComment: >
8 | Hello there!👋 Welcome to the Amazing CSS-Effects project!🚀⚡
9 |
10 | Thank you and congrats🎉 for opening your very first issue in this project.
11 | Please make sure not to start working on the issue, unless you get assigned to it.😄
12 |
13 |
14 | # Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
15 | # Comment to be posted to on PRs from first time contributors in your repository
16 |
17 | newPRWelcomeComment: >
18 | Hello there!👋 Welcome to the Amazing CSS-Effects project!💖
19 |
20 | Thank you and congrats🎉 for opening your first pull request.
21 | We will get back to you as soon as we can 😄.
22 |
23 |
24 | # Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
25 | # Comment to be posted to on pull requests merged by a first time user
26 |
27 | firstPRMergeComment: >
28 | Hello there!👋
29 |
30 | Congrats🎉 on getting your first pull request merged! All the best for your amazing open-source journey ahead 🚀.
--------------------------------------------------------------------------------
/.github/issues_labeler.yml:
--------------------------------------------------------------------------------
1 | Proposal:
2 | - "(Proposal)"
3 | Feature:
4 | - "(feature|Feature)"
--------------------------------------------------------------------------------
/.github/workflows/Auto_Issue_Closer.yml:
--------------------------------------------------------------------------------
1 | name: Auto Close Issues
2 |
3 | on:
4 | pull_request:
5 | types: [closed]
6 | jobs:
7 | close:
8 | runs-on: ubuntu-latest
9 | steps:
10 | - uses: bubkoo/auto-close-fixed-issues@v1
11 | with:
12 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 |
--------------------------------------------------------------------------------
/.github/workflows/Auto_message_on_creatingissues.yml:
--------------------------------------------------------------------------------
1 | name: Auto message on Creating Issue.
2 |
3 | on:
4 | issues:
5 | types: [opened]
6 |
7 | jobs:
8 | greeting:
9 | runs-on: ubuntu-latest
10 | steps:
11 | - name: Create comment for issue
12 | if: github.event_name =='issues'
13 | uses: peter-evans/create-or-update-comment@v1
14 | with:
15 | issue-number: ${{tojson(github.event.issue.number)}}
16 | body: Hello there!👋, @${{ github.actor }} Welcome to the CES-MMMUT project!🚀⚡Thank you and congrats🎉 for opening issue in this project. Please make sure not to start working on the issue, unless you get assigned to it.😄
17 |
18 |
19 |
--------------------------------------------------------------------------------
/.github/workflows/Auto_message_on_pr_merge.yml:
--------------------------------------------------------------------------------
1 | name: Auto message on pr merge
2 |
3 | on:
4 | pull_request_target:
5 | types: [closed]
6 |
7 | jobs:
8 | auto-response:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - uses: derekprior/add-autoresponse@master
13 | env:
14 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 | with:
16 | respondableId: ${{ github.event.pull_request.node_id }}
17 | response: "Thank you @${{ github.event.pull_request.user.login }} for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions :)"
18 | author: ${{ github.event.pull_request.user.login }}
19 | exemptedAuthors: "arpit456jain"
20 |
--------------------------------------------------------------------------------
/.github/workflows/Auto_message_on_pr_open.yml:
--------------------------------------------------------------------------------
1 | name: Auto message on pr opened
2 |
3 | on:
4 | pull_request_target:
5 | types: [opened]
6 |
7 | jobs:
8 | auto-response:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - uses: derekprior/add-autoresponse@master
13 | env:
14 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 | with:
16 | respondableId: ${{ github.event.pull_request.node_id }}
17 | response: "Our team will soon review your PR. Thanks @${{ github.event.pull_request.user.login }} :)"
18 | author: ${{ github.event.pull_request.user.login }}
19 | exemptedAuthors: "arpit456jain"
20 |
--------------------------------------------------------------------------------
/.github/workflows/Issue_labeler.yml:
--------------------------------------------------------------------------------
1 | name: Issues Labeler
2 | on:
3 | issues:
4 | types: [opened, edited]
5 | jobs:
6 | labeler:
7 | runs-on: ubuntu-latest
8 | steps:
9 | - uses: github/issue-labeler@v2.0
10 | with:
11 | repo-token: "${{ secrets.GITHUB_TOKEN }}"
12 | configuration-path: .github/issues_labeler.yml
13 | enable-versioned-regex: 0
--------------------------------------------------------------------------------
/.github/workflows/greetings.yml:
--------------------------------------------------------------------------------
1 | name: Greetings
2 |
3 | on: [pull_request, issues]
4 |
5 | jobs:
6 | greeting:
7 | runs-on: ubuntu-latest
8 | steps:
9 | - uses: actions/first-interaction@v1
10 | with:
11 | repo-token: ${{ secrets.GITHUB_TOKEN }}
12 | issue-message: 'Hi 😄, thanks for creating your first issue at
13 | CES-MMMUT project!🚀⚡ do read and follow the [Code of Conduct](https://github.com/arpit456jain/Amazing-Css-Effects/blob/master/CODE_OF_CONDUCT.md) while contributing.'
14 | pr-message: 'Thank you for your pull request and welcome to our community! We will soon be getting back to you. Your patience will be greatly appreciated!Thanks! 🥳'
15 |
16 |
--------------------------------------------------------------------------------
/.github/workflows/issue-labeler.yml:
--------------------------------------------------------------------------------
1 | name: issue-labeler
2 |
3 | on:
4 | issues:
5 | types: [opened]
6 |
7 | jobs:
8 | automate-issues-labels:
9 | runs-on: ubuntu-latest
10 | steps:
11 | - name: initial labeling
12 | uses: andymckay/labeler@master
13 | with:
14 | add-labels: 'CES-MMMUT'
--------------------------------------------------------------------------------
/.github/workflows/pr-labeler.yml:
--------------------------------------------------------------------------------
1 | name: Add label to Merged PR
2 |
3 | # The events for whcih this workflow wii be triggered
4 | on:
5 | pull_request_target:
6 | types: [closed]
7 |
8 | # The machine will run each job when workflow will be triggered
9 | jobs:
10 | automate-issues-labels:
11 | runs-on: ubuntu-latest
12 | # These tasks will be run in each job
13 | steps:
14 | - name: initial labeling
15 | uses: andymckay/labeler@master
16 | with:
17 | add-labels: 'CES-MMMUT'
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 | *.py[cod]
4 | *$py.class
5 |
6 | # C extensions
7 | *.so
8 |
9 | # Distribution / packaging
10 | .Python
11 | build/
12 | develop-eggs/
13 | dist/
14 | downloads/
15 | eggs/
16 | .eggs/
17 | lib/
18 | lib64/
19 | parts/
20 | sdist/
21 | var/
22 | wheels/
23 | pip-wheel-metadata/
24 | share/python-wheels/
25 | *.egg-info/
26 | .installed.cfg
27 | *.egg
28 | MANIFEST
29 |
30 | # PyInstaller
31 | # Usually these files are written by a python script from a template
32 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
33 | *.manifest
34 | *.spec
35 |
36 | # Installer logs
37 | pip-log.txt
38 | pip-delete-this-directory.txt
39 |
40 | # Unit test / coverage reports
41 | htmlcov/
42 | .tox/
43 | .nox/
44 | .coverage
45 | .coverage.*
46 | .cache
47 | nosetests.xml
48 | coverage.xml
49 | *.cover
50 | *.py,cover
51 | .hypothesis/
52 | .pytest_cache/
53 |
54 | # Translations
55 | *.mo
56 | *.pot
57 |
58 | # Django stuff:
59 | *.log
60 | local_settings.py
61 | db.sqlite3
62 | db.sqlite3-journal
63 |
64 | # Flask stuff:
65 | instance/
66 | .webassets-cache
67 |
68 | # Scrapy stuff:
69 | .scrapy
70 |
71 | # Sphinx documentation
72 | docs/_build/
73 |
74 | # PyBuilder
75 | target/
76 |
77 | # Jupyter Notebook
78 | .ipynb_checkpoints
79 |
80 | # IPython
81 | profile_default/
82 | ipython_config.py
83 |
84 | # pyenv
85 | .python-version
86 |
87 | # pipenv
88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies
90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not
91 | # install all needed dependencies.
92 | #Pipfile.lock
93 |
94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95 | __pypackages__/
96 |
97 | # Celery stuff
98 | celerybeat-schedule
99 | celerybeat.pid
100 |
101 | # SageMath parsed files
102 | *.sage.py
103 |
104 | # Environments
105 | .env
106 | .venv
107 | env/
108 | venv/
109 | ENV/
110 | env.bak/
111 | venv.bak/
112 |
113 | # Spyder project settings
114 | .spyderproject
115 | .spyproject
116 |
117 | # Rope project settings
118 | .ropeproject
119 |
120 | # mkdocs documentation
121 | /site
122 |
123 | # mypy
124 | .mypy_cache/
125 | .dmypy.json
126 | dmypy.json
127 |
128 | # Pyre type checker
129 | .pyre/
130 |
--------------------------------------------------------------------------------
/CES-Team-Members.md:
--------------------------------------------------------------------------------
1 | 1 [Arpit Jain](https://github.com/arpit456jain)
2 | 2 [Anubhav Miller](https://github.com/mravtechinfo)
3 | 3 [Rupal Singh](https://github.com/rupal121)
4 | 4 [SaumyaSrivastava](https://github.com/SaumyaSrivastava-bot)
5 | 5 [Namita Chaudhary](https://github.com/namita27)
6 | 6 [Soumya Gupta](https://github.com/srhsoumya)
7 | 7 [Siddhartha Pandey](https://github.com/Siddhartha2807)
8 | 8 [Swati Singh](https://github.com/swati-singh909)
9 | 9 [Ujjwal Gupta](https://github.com/Ujjawalgupta42)
10 | 10 []()
11 | 11 []()
12 | 12 []()
13 | 13 []()
14 | 14 []()
15 | 15 []()
16 |
--------------------------------------------------------------------------------
/Event.md:
--------------------------------------------------------------------------------
1 | 1 []()
2 | 2 []()
3 | 3 []()
4 | 4 []()
5 | 5 []()
6 | 6 []()
7 | 7 []()
8 | 8 []()
9 | 9 []()
10 | 10 [a]()
11 | 11 []()
12 | 12 []()
13 | 13 []()
14 | 14 []()
15 | 15 []()
16 | 16 []()
17 | 17 []()
18 | 18 []()
19 | 19 []()
20 | 20 []()
21 | 21 []()
22 | 22 []()
23 | 23 []()
24 | 24 []()
25 | 25 []()
26 | 26 [Shruti Singh](singhshruti0902@gmail.com)
27 | 27 []()
28 | 28 []()
29 | 29 []()
30 | 30 []()
31 | 31 [Astha Barnwal](astha2412)
32 | 32 [Sophiya Singh](sophiya02)
33 | 33 []()
34 | 34 []()
35 | 35 []()
36 | 36 []()
37 | 37 []()
38 | 38 [Deepanjali Vyas](DeepanjaliVyas)
39 | 39 [Satyam Chaurasiya](codesatyam)
40 | 40 []()
41 | 41 []()
42 | 42 []()
43 | 43 []()
44 | 44 []()
45 | 45 []()
46 | 46 []()
47 | 47 []()
48 | 48 []()
49 | 49 []()
50 | 50 []()
51 | 51 []()
52 | 52 []()
53 | 53 []()
54 | 54 []()
55 | 55 []()
56 | 56 []()
57 | 57 []()
58 | 58 []()
59 | 59 []()
60 | 60 []()
61 | 61 []()
62 | 62 []()
63 | 63 []()
64 | 64 []()
65 | 65 []()
66 | 66 []()
67 | 67 [Ayushi](ayushim13)
68 | 68 []()
69 | 69 [Himanshu Dubey](himanshud959)
70 | 70 [Vishnu Pratap](vishnupratap3790)
71 | 71 []()
72 | 72 []()
73 | 73 []()
74 | 74 []()
75 | 75 []()
76 | 76 []()
77 | 77 [Subham Kumar Ojha](altyon-get)
78 | 78 []()
79 | 79 []()
80 | 80 [Nitesh Rawat](connectnitesh)
81 | 81 []()
82 | 82 []()
83 | 83 []()
84 | 84 [Arpit Jain](arpit456jain)
85 | 85 []()
86 | 86 []()
87 | 87 []()
88 | 88 []()
89 | 89 [ARYAN BARSAIYAN](AryanBarsaiyan)
90 | 90 []()
91 | 91 [Abhay Singh](deltaTH)
92 | 92 [Abhay Singh](deltaTH)
93 | 93 []()
94 | 94 []()
95 | 95 []()
96 | 96 [Naveen kushwaha](naveen1nk)
97 | 97 []()
98 | 98 []()
99 | 99 []()
100 | 100 [Mahesh Chaubey](Mahesh707186)
101 | 101 []()
102 | 102 []()
103 | 103 [Avinash kumar chaurasia](Avinash170)
104 | 104 []()
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 | gem 'github-pages'
3 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 111arpit1
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CES-MMMUT Presents
2 | 
3 | [](https://github.com/arpit456jain/Wield-The-Web/graphs/contributors)
4 | [](https://github.com/arpit456jain/Wield-The-Web/issues)
5 | [](https://github.com/arpit456jain/Wield-The-Web/issues)
6 | [](https://github.com/arpit456jain/Wield-The-Web/pulls)
7 | [](https://github.com/arpit456jain/Wield-The-Web/pulls)
8 | 
9 |
10 | ### 💻 Tech Stack
11 |
12 |
13 | ### Front-End:
14 |
15 |
16 |
17 |
");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var F,H="ajax",L=function(){F&&i.removeClass(F)},A=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){t.types.push(H),F=t.st.ajax.cursor,x(l+"."+H,A),x("BeforeChange."+H,A)},getAjax:function(n){F&&i.addClass(F),t.updateStatus("loading");var o=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};T("ParseAjax",a),t.appendContent(e(a.data),H),n.finished=!0,L(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),T("AjaxContentAdded")},error:function(){L(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}});var j,N=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),x(f+n,function(){"image"===t.currItem.type&&e.cursor&&i.addClass(e.cursor)}),x(l+n,function(){e.cursor&&i.removeClass(e.cursor),I.off("resize"+h)}),x("Resize"+n,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,j&&clearInterval(j),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){j&&clearInterval(j),j=setInterval(function(){return i.naturalWidth>0?(t._onImageHasSize(e),void 0):(n>200&&clearInterval(j),n++,3===n?o(10):40===n?o(50):100===n&&o(500),void 0)},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:N(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(j&&clearInterval(j),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var W,R=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};x("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return d(),void 0;r=s(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,T("ZoomAnimationEnded")},16)},a)},16)}}),x(c+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),x(l+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(b?i.innerHeight():i[0].offsetHeight)-a-r};return R()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var Z="iframe",q="//about:blank",D=function(e){if(t.currTemplate[Z]){var n=t.currTemplate[Z].find("iframe");n.length&&(e||(n[0].src=q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(Z,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(Z),x("BeforeChange",function(e,t,n){t!==n&&(t===Z?D():n===Z&&D(!0))}),x(l+"."+Z,function(){D()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var K=function(e){var n=t.items.length;return e>n-1?e-n:0>e?n+e:e},Y=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);return t.direction=!0,n&&n.enabled?(a+=" mfp-gallery",x(f+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),o.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),x("UpdateStatus"+i,function(e,n){n.text&&(n.text=Y(n.text,t.currItem.index,t.items.length))}),x(p+i,function(e,i,o,r){var a=t.items.length;o.counter=a>1?Y(n.tCounter,r.index,a):""}),x("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(k("b",o[0],!1,!0),k("a",o[0],!1,!0),k("b",a[0],!1,!0),k("a",a[0],!1,!0)),t.container.append(o.add(a))}}),x(m+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),x(l+i,function(){o.off(i),t.wrap.off("click"+i),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0,t.index=K(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=K(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;(t.direction?o:i)>=e;e++)t._preloadItem(t.index+e);for(e=1;(t.direction?i:o)>=e;e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=K(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),T("LazyLoad",i),"image"===i.type&&(i.img=e('
').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,T("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(x("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),x("ElementParse."+U,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,i=function(){I.off("touchmove"+r+" touchend"+r)},o="mfpFastClick",r="."+o;e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,s=e(this);if(n){var l,c,d,u,p,f;s.on("touchstart"+r,function(e){u=!1,f=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,d=p.clientY,I.on("touchmove"+r,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(u=!0,i())}).on("touchend"+r,function(e){i(),u||f>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),o())})})}s.on("click"+r,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+r+" click"+r),n&&I.off("touchmove"+r+" touchend"+r)}}(),_()})(window.jQuery||window.Zepto);
--------------------------------------------------------------------------------
/js/jquery.stellar.min.js:
--------------------------------------------------------------------------------
1 | /*! Stellar.js v0.6.2 | Copyright 2014, Mark Dalgleish | http://markdalgleish.com/projects/stellar.js | http://markdalgleish.mit-license.org */
2 | !function(a,b,c,d){function e(b,c){this.element=b,this.options=a.extend({},g,c),this._defaults=g,this._name=f,this.init()}var f="stellar",g={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(a){a.hide()},showElement:function(a){a.show()}},h={scroll:{getLeft:function(a){return a.scrollLeft()},setLeft:function(a,b){a.scrollLeft(b)},getTop:function(a){return a.scrollTop()},setTop:function(a,b){a.scrollTop(b)}},position:{getLeft:function(a){return-1*parseInt(a.css("left"),10)},getTop:function(a){return-1*parseInt(a.css("top"),10)}},margin:{getLeft:function(a){return-1*parseInt(a.css("margin-left"),10)},getTop:function(a){return-1*parseInt(a.css("margin-top"),10)}},transform:{getLeft:function(a){var b=getComputedStyle(a[0])[k];return"none"!==b?-1*parseInt(b.match(/(-?[0-9]+)/g)[4],10):0},getTop:function(a){var b=getComputedStyle(a[0])[k];return"none"!==b?-1*parseInt(b.match(/(-?[0-9]+)/g)[5],10):0}}},i={position:{setLeft:function(a,b){a.css("left",b)},setTop:function(a,b){a.css("top",b)}},transform:{setPosition:function(a,b,c,d,e){a[0].style[k]="translate3d("+(b-c)+"px, "+(d-e)+"px, 0)"}}},j=function(){var b,c=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,d=a("script")[0].style,e="";for(b in d)if(c.test(b)){e=b.match(c)[0];break}return"WebkitOpacity"in d&&(e="Webkit"),"KhtmlOpacity"in d&&(e="Khtml"),function(a){return e+(e.length>0?a.charAt(0).toUpperCase()+a.slice(1):a)}}(),k=j("transform"),l=a("
",{style:"background:#fff"}).css("background-position-x")!==d,m=l?function(a,b,c){a.css({"background-position-x":b,"background-position-y":c})}:function(a,b,c){a.css("background-position",b+" "+c)},n=l?function(a){return[a.css("background-position-x"),a.css("background-position-y")]}:function(a){return a.css("background-position").split(" ")},o=b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)};e.prototype={init:function(){this.options.name=f+"_"+Math.floor(1e9*Math.random()),this._defineElements(),this._defineGetters(),this._defineSetters(),this._handleWindowLoadAndResize(),this._detectViewport(),this.refresh({firstLoad:!0}),"scroll"===this.options.scrollProperty?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===c.body&&(this.element=b),this.$scrollElement=a(this.element),this.$element=this.element===b?a("body"):this.$scrollElement,this.$viewportElement=this.options.viewportElement!==d?a(this.options.viewportElement):this.$scrollElement[0]===b||"scroll"===this.options.scrollProperty?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var a=this,b=h[a.options.scrollProperty];this._getScrollLeft=function(){return b.getLeft(a.$scrollElement)},this._getScrollTop=function(){return b.getTop(a.$scrollElement)}},_defineSetters:function(){var b=this,c=h[b.options.scrollProperty],d=i[b.options.positionProperty],e=c.setLeft,f=c.setTop;this._setScrollLeft="function"==typeof e?function(a){e(b.$scrollElement,a)}:a.noop,this._setScrollTop="function"==typeof f?function(a){f(b.$scrollElement,a)}:a.noop,this._setPosition=d.setPosition||function(a,c,e,f,g){b.options.horizontalScrolling&&d.setLeft(a,c,e),b.options.verticalScrolling&&d.setTop(a,f,g)}},_handleWindowLoadAndResize:function(){var c=this,d=a(b);c.options.responsive&&d.bind("load."+this.name,function(){c.refresh()}),d.bind("resize."+this.name,function(){c._detectViewport(),c.options.responsive&&c.refresh()})},refresh:function(c){var d=this,e=d._getScrollLeft(),f=d._getScrollTop();c&&c.firstLoad||this._reset(),this._setScrollLeft(0),this._setScrollTop(0),this._setOffsets(),this._findParticles(),this._findBackgrounds(),c&&c.firstLoad&&/WebKit/.test(navigator.userAgent)&&a(b).load(function(){var a=d._getScrollLeft(),b=d._getScrollTop();d._setScrollLeft(a+1),d._setScrollTop(b+1),d._setScrollLeft(a),d._setScrollTop(b)}),this._setScrollLeft(e),this._setScrollTop(f)},_detectViewport:function(){var a=this.$viewportElement.offset(),b=null!==a&&a!==d;this.viewportWidth=this.$viewportElement.width(),this.viewportHeight=this.$viewportElement.height(),this.viewportOffsetTop=b?a.top:0,this.viewportOffsetLeft=b?a.left:0},_findParticles:function(){{var b=this;this._getScrollLeft(),this._getScrollTop()}if(this.particles!==d)for(var c=this.particles.length-1;c>=0;c--)this.particles[c].$element.data("stellar-elementIsActive",d);this.particles=[],this.options.parallaxElements&&this.$element.find("[data-stellar-ratio]").each(function(){var c,e,f,g,h,i,j,k,l,m=a(this),n=0,o=0,p=0,q=0;if(m.data("stellar-elementIsActive")){if(m.data("stellar-elementIsActive")!==this)return}else m.data("stellar-elementIsActive",this);b.options.showElement(m),m.data("stellar-startingLeft")?(m.css("left",m.data("stellar-startingLeft")),m.css("top",m.data("stellar-startingTop"))):(m.data("stellar-startingLeft",m.css("left")),m.data("stellar-startingTop",m.css("top"))),f=m.position().left,g=m.position().top,h="auto"===m.css("margin-left")?0:parseInt(m.css("margin-left"),10),i="auto"===m.css("margin-top")?0:parseInt(m.css("margin-top"),10),k=m.offset().left-h,l=m.offset().top-i,m.parents().each(function(){var b=a(this);return b.data("stellar-offset-parent")===!0?(n=p,o=q,j=b,!1):(p+=b.position().left,void(q+=b.position().top))}),c=m.data("stellar-horizontal-offset")!==d?m.data("stellar-horizontal-offset"):j!==d&&j.data("stellar-horizontal-offset")!==d?j.data("stellar-horizontal-offset"):b.horizontalOffset,e=m.data("stellar-vertical-offset")!==d?m.data("stellar-vertical-offset"):j!==d&&j.data("stellar-vertical-offset")!==d?j.data("stellar-vertical-offset"):b.verticalOffset,b.particles.push({$element:m,$offsetParent:j,isFixed:"fixed"===m.css("position"),horizontalOffset:c,verticalOffset:e,startingPositionLeft:f,startingPositionTop:g,startingOffsetLeft:k,startingOffsetTop:l,parentOffsetLeft:n,parentOffsetTop:o,stellarRatio:m.data("stellar-ratio")!==d?m.data("stellar-ratio"):1,width:m.outerWidth(!0),height:m.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var b,c=this,e=this._getScrollLeft(),f=this._getScrollTop();this.backgrounds=[],this.options.parallaxBackgrounds&&(b=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(b=b.add(this.$element)),b.each(function(){var b,g,h,i,j,k,l,o=a(this),p=n(o),q=0,r=0,s=0,t=0;if(o.data("stellar-backgroundIsActive")){if(o.data("stellar-backgroundIsActive")!==this)return}else o.data("stellar-backgroundIsActive",this);o.data("stellar-backgroundStartingLeft")?m(o,o.data("stellar-backgroundStartingLeft"),o.data("stellar-backgroundStartingTop")):(o.data("stellar-backgroundStartingLeft",p[0]),o.data("stellar-backgroundStartingTop",p[1])),h="auto"===o.css("margin-left")?0:parseInt(o.css("margin-left"),10),i="auto"===o.css("margin-top")?0:parseInt(o.css("margin-top"),10),j=o.offset().left-h-e,k=o.offset().top-i-f,o.parents().each(function(){var b=a(this);return b.data("stellar-offset-parent")===!0?(q=s,r=t,l=b,!1):(s+=b.position().left,void(t+=b.position().top))}),b=o.data("stellar-horizontal-offset")!==d?o.data("stellar-horizontal-offset"):l!==d&&l.data("stellar-horizontal-offset")!==d?l.data("stellar-horizontal-offset"):c.horizontalOffset,g=o.data("stellar-vertical-offset")!==d?o.data("stellar-vertical-offset"):l!==d&&l.data("stellar-vertical-offset")!==d?l.data("stellar-vertical-offset"):c.verticalOffset,c.backgrounds.push({$element:o,$offsetParent:l,isFixed:"fixed"===o.css("background-attachment"),horizontalOffset:b,verticalOffset:g,startingValueLeft:p[0],startingValueTop:p[1],startingBackgroundPositionLeft:isNaN(parseInt(p[0],10))?0:parseInt(p[0],10),startingBackgroundPositionTop:isNaN(parseInt(p[1],10))?0:parseInt(p[1],10),startingPositionLeft:o.position().left,startingPositionTop:o.position().top,startingOffsetLeft:j,startingOffsetTop:k,parentOffsetLeft:q,parentOffsetTop:r,stellarRatio:o.data("stellar-background-ratio")===d?1:o.data("stellar-background-ratio")})}))},_reset:function(){var a,b,c,d,e;for(e=this.particles.length-1;e>=0;e--)a=this.particles[e],b=a.$element.data("stellar-startingLeft"),c=a.$element.data("stellar-startingTop"),this._setPosition(a.$element,b,b,c,c),this.options.showElement(a.$element),a.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(e=this.backgrounds.length-1;e>=0;e--)d=this.backgrounds[e],d.$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),m(d.$element,d.startingValueLeft,d.startingValueTop)},destroy:function(){this._reset(),this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name),this._animationLoop=a.noop,a(b).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var c=this,d=a(b);d.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name),"function"==typeof this.options.horizontalOffset?(this.horizontalOffset=this.options.horizontalOffset(),d.bind("resize.horizontal-"+this.name,function(){c.horizontalOffset=c.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset,"function"==typeof this.options.verticalOffset?(this.verticalOffset=this.options.verticalOffset(),d.bind("resize.vertical-"+this.name,function(){c.verticalOffset=c.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var a,b,c,d,e,f,g,h,i,j,k=this._getScrollLeft(),l=this._getScrollTop(),n=!0,o=!0;if(this.currentScrollLeft!==k||this.currentScrollTop!==l||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=k,this.currentScrollTop=l,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,j=this.particles.length-1;j>=0;j--)a=this.particles[j],b=a.isFixed?1:0,this.options.horizontalScrolling?(f=(k+a.horizontalOffset+this.viewportOffsetLeft+a.startingPositionLeft-a.startingOffsetLeft+a.parentOffsetLeft)*-(a.stellarRatio+b-1)+a.startingPositionLeft,h=f-a.startingPositionLeft+a.startingOffsetLeft):(f=a.startingPositionLeft,h=a.startingOffsetLeft),this.options.verticalScrolling?(g=(l+a.verticalOffset+this.viewportOffsetTop+a.startingPositionTop-a.startingOffsetTop+a.parentOffsetTop)*-(a.stellarRatio+b-1)+a.startingPositionTop,i=g-a.startingPositionTop+a.startingOffsetTop):(g=a.startingPositionTop,i=a.startingOffsetTop),this.options.hideDistantElements&&(o=!this.options.horizontalScrolling||h+a.width>(a.isFixed?0:k)&&h<(a.isFixed?0:k)+this.viewportWidth+this.viewportOffsetLeft,n=!this.options.verticalScrolling||i+a.height>(a.isFixed?0:l)&&i<(a.isFixed?0:l)+this.viewportHeight+this.viewportOffsetTop),o&&n?(a.isHidden&&(this.options.showElement(a.$element),a.isHidden=!1),this._setPosition(a.$element,f,a.startingPositionLeft,g,a.startingPositionTop)):a.isHidden||(this.options.hideElement(a.$element),a.isHidden=!0);for(j=this.backgrounds.length-1;j>=0;j--)c=this.backgrounds[j],b=c.isFixed?0:1,d=this.options.horizontalScrolling?(k+c.horizontalOffset-this.viewportOffsetLeft-c.startingOffsetLeft+c.parentOffsetLeft-c.startingBackgroundPositionLeft)*(b-c.stellarRatio)+"px":c.startingValueLeft,e=this.options.verticalScrolling?(l+c.verticalOffset-this.viewportOffsetTop-c.startingOffsetTop+c.parentOffsetTop-c.startingBackgroundPositionTop)*(b-c.stellarRatio)+"px":c.startingValueTop,m(c.$element,d,e)}},_handleScrollEvent:function(){var a=this,b=!1,c=function(){a._repositionElements(),b=!1},d=function(){b||(o(c),b=!0)};this.$scrollElement.bind("scroll."+this.name,d),d()},_startAnimationLoop:function(){var a=this;this._animationLoop=function(){o(a._animationLoop),a._repositionElements()},this._animationLoop()}},a.fn[f]=function(b){var c=arguments;return b===d||"object"==typeof b?this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))}):"string"==typeof b&&"_"!==b[0]&&"init"!==b?this.each(function(){var d=a.data(this,"plugin_"+f);d instanceof e&&"function"==typeof d[b]&&d[b].apply(d,Array.prototype.slice.call(c,1)),"destroy"===b&&a.data(this,"plugin_"+f,null)}):void 0},a[f]=function(){var c=a(b);return c.stellar.apply(c,Array.prototype.slice.call(arguments,0))},a[f].scrollProperty=h,a[f].positionProperty=i,b.Stellar=e}(jQuery,this,document);
--------------------------------------------------------------------------------
/js/jquery.waypoints.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | Waypoints - 4.0.0
3 | Copyright © 2011-2015 Caleb Troughton
4 | Licensed under the MIT license.
5 | https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
6 | */
7 | !function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll
=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=y+l-f,h=w=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
--------------------------------------------------------------------------------
/js/magnific-popup-options.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function() {
2 | // MagnificPopup
3 | var magnifPopup = function() {
4 | $('.image-popup').magnificPopup({
5 | type: 'image',
6 | removalDelay: 300,
7 | mainClass: 'mfp-with-zoom',
8 | gallery:{
9 | enabled:true
10 | },
11 | zoom: {
12 | enabled: true, // By default it's false, so don't forget to enable it
13 |
14 | duration: 300, // duration of the effect, in milliseconds
15 | easing: 'ease-in-out', // CSS transition easing function
16 |
17 | // The "opener" function should return the element from which popup will be zoomed in
18 | // and to which popup will be scaled down
19 | // By defailt it looks for an image tag:
20 | opener: function(openerElement) {
21 | // openerElement is the element on which popup was initialized, in this case its tag
22 | // you don't need to add "opener" option if this code matches your needs, it's defailt one.
23 | return openerElement.is('img') ? openerElement : openerElement.find('img');
24 | }
25 | }
26 | });
27 | };
28 |
29 | var magnifVideo = function() {
30 | $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
31 | disableOn: 700,
32 | type: 'iframe',
33 | mainClass: 'mfp-fade',
34 | removalDelay: 160,
35 | preloader: false,
36 |
37 | fixedContentPos: false
38 | });
39 | };
40 |
41 |
42 |
43 |
44 | // Call the functions
45 | magnifPopup();
46 | magnifVideo();
47 |
48 | });
--------------------------------------------------------------------------------
/js/main.js:
--------------------------------------------------------------------------------
1 | ;(function () {
2 |
3 | 'use strict';
4 |
5 | var mobileMenuOutsideClick = function() {
6 |
7 | $(document).click(function (e) {
8 | var container = $("#fh5co-offcanvas, .js-fh5co-nav-toggle");
9 | if (!container.is(e.target) && container.has(e.target).length === 0) {
10 |
11 | if ( $('body').hasClass('offcanvas') ) {
12 |
13 | $('body').removeClass('offcanvas');
14 | $('.js-fh5co-nav-toggle').removeClass('active');
15 | }
16 | }
17 | });
18 |
19 | };
20 |
21 |
22 | var offcanvasMenu = function() {
23 |
24 | $('#page').prepend('
');
25 | $('#page').prepend(' ');
26 | var clone1 = $('.menu-1 > ul').clone();
27 | $('#fh5co-offcanvas').append(clone1);
28 | var clone2 = $('.menu-2 > ul').clone();
29 | $('#fh5co-offcanvas').append(clone2);
30 |
31 | $('#fh5co-offcanvas .has-dropdown').addClass('offcanvas-has-dropdown');
32 | $('#fh5co-offcanvas')
33 | .find('li')
34 | .removeClass('has-dropdown');
35 |
36 | // Hover dropdown menu on mobile
37 | $('.offcanvas-has-dropdown').mouseenter(function(){
38 | var $this = $(this);
39 |
40 | $this
41 | .addClass('active')
42 | .find('ul')
43 | .slideDown(500, 'easeOutExpo');
44 | }).mouseleave(function(){
45 |
46 | var $this = $(this);
47 | $this
48 | .removeClass('active')
49 | .find('ul')
50 | .slideUp(500, 'easeOutExpo');
51 | });
52 |
53 |
54 | $(window).resize(function(){
55 |
56 | if ( $('body').hasClass('offcanvas') ) {
57 |
58 | $('body').removeClass('offcanvas');
59 | $('.js-fh5co-nav-toggle').removeClass('active');
60 |
61 | }
62 | });
63 | };
64 |
65 |
66 | var burgerMenu = function() {
67 |
68 | $('body').on('click', '.js-fh5co-nav-toggle', function(event){
69 | var $this = $(this);
70 |
71 |
72 | if ( $('body').hasClass('overflow offcanvas') ) {
73 | $('body').removeClass('overflow offcanvas');
74 | } else {
75 | $('body').addClass('overflow offcanvas');
76 | }
77 | $this.toggleClass('active');
78 | event.preventDefault();
79 |
80 | });
81 | };
82 |
83 |
84 |
85 | var contentWayPoint = function() {
86 | var i = 0;
87 | $('.animate-box').waypoint( function( direction ) {
88 |
89 | if( direction === 'down' && !$(this.element).hasClass('animated-fast') ) {
90 |
91 | i++;
92 |
93 | $(this.element).addClass('item-animate');
94 | setTimeout(function(){
95 |
96 | $('body .animate-box.item-animate').each(function(k){
97 | var el = $(this);
98 | setTimeout( function () {
99 | var effect = el.data('animate-effect');
100 | if ( effect === 'fadeIn') {
101 | el.addClass('fadeIn animated-fast');
102 | } else if ( effect === 'fadeInLeft') {
103 | el.addClass('fadeInLeft animated-fast');
104 | } else if ( effect === 'fadeInRight') {
105 | el.addClass('fadeInRight animated-fast');
106 | } else {
107 | el.addClass('fadeInUp animated-fast');
108 | }
109 |
110 | el.removeClass('item-animate');
111 | }, k * 200, 'easeInOutExpo' );
112 | });
113 |
114 | }, 100);
115 |
116 | }
117 |
118 | } , { offset: '85%' } );
119 | };
120 |
121 |
122 | var dropdown = function() {
123 |
124 | $('.has-dropdown').mouseenter(function(){
125 |
126 | var $this = $(this);
127 | $this
128 | .find('.dropdown')
129 | .css('display', 'block')
130 | .addClass('animated-fast fadeInUpMenu');
131 |
132 | }).mouseleave(function(){
133 | var $this = $(this);
134 |
135 | $this
136 | .find('.dropdown')
137 | .css('display', 'none')
138 | .removeClass('animated-fast fadeInUpMenu');
139 | });
140 |
141 | };
142 |
143 |
144 | var testimonialCarousel = function(){
145 | var owl = $('.owl-carousel-fullwidth');
146 | owl.owlCarousel({
147 | items: 1,
148 | loop: true,
149 | margin: 0,
150 | responsiveClass: true,
151 | nav: false,
152 | dots: true,
153 | smartSpeed: 800,
154 | autoHeight: true,
155 | });
156 | };
157 |
158 |
159 | var goToTop = function() {
160 |
161 | $('.js-gotop').on('click', function(event){
162 |
163 | event.preventDefault();
164 |
165 | $('html, body').animate({
166 | scrollTop: $('html').offset().top
167 | }, 500, 'easeInOutExpo');
168 |
169 | return false;
170 | });
171 |
172 | $(window).scroll(function(){
173 |
174 | var $win = $(window);
175 | if ($win.scrollTop() > 200) {
176 | $('.js-top').addClass('active');
177 | } else {
178 | $('.js-top').removeClass('active');
179 | }
180 |
181 | });
182 |
183 | };
184 |
185 |
186 | // Loading page
187 | var loaderPage = function() {
188 | $(".fh5co-loader").fadeOut("slow");
189 | };
190 |
191 | var counter = function() {
192 | $('.js-counter').countTo({
193 | formatter: function (value, options) {
194 | return value.toFixed(options.decimals);
195 | },
196 | });
197 | };
198 |
199 | var counterWayPoint = function() {
200 | if ($('#fh5co-counter').length > 0 ) {
201 | $('#fh5co-counter').waypoint( function( direction ) {
202 |
203 | if( direction === 'down' && !$(this.element).hasClass('animated') ) {
204 | setTimeout( counter , 400);
205 | $(this.element).addClass('animated');
206 | }
207 | } , { offset: '90%' } );
208 | }
209 | };
210 |
211 | // Parallax
212 | var parallax = function() {
213 | $(window).stellar();
214 | };
215 |
216 |
217 | $(function(){
218 | mobileMenuOutsideClick();
219 | parallax();
220 | offcanvasMenu();
221 | burgerMenu();
222 | contentWayPoint();
223 | dropdown();
224 | testimonialCarousel();
225 | goToTop();
226 | loaderPage();
227 | counter();
228 | counterWayPoint();
229 | });
230 |
231 |
232 | }());
--------------------------------------------------------------------------------
/js/modernizr-2.6.2.min.js:
--------------------------------------------------------------------------------
1 | /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
2 | * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
3 | */
4 | ;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d',a,""].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){return J("borderRadius")},s.boxshadow=function(){return J("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return E("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return J("animationName")},s.csscolumns=function(){return J("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return D((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),G(j.backgroundImage,"gradient")},s.cssreflections=function(){return J("boxReflect")},s.csstransforms=function(){return!!J("transform")},s.csstransforms3d=function(){var a=!!J("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return J("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML=" ",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,e.prefixed=function(a,b,c){return b?J(a,b,c):J(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f #mq-test-1 { width: 42px; }',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b
8 | * Contributors :
9 | * - Justin Beasley
10 | * - Nathan Smith
11 | */
12 | /*global window, document*/
13 | (function (exports) {
14 | 'use strict';
15 |
16 | var // functions
17 | extend,
18 | createElements,
19 | createCountdownElt,
20 | simplyCountdown;
21 |
22 | /**
23 | * Function that merge user parameters with defaults one.
24 | * @param out
25 | * @returns {*|{}}
26 | */
27 | extend = function (out) {
28 | var i,
29 | obj,
30 | key;
31 | out = out || {};
32 |
33 | for (i = 1; i < arguments.length; i += 1) {
34 | obj = arguments[i];
35 |
36 | if (obj) {
37 | for (key in obj) {
38 | if (obj.hasOwnProperty(key)) {
39 | if (typeof obj[key] === 'object') {
40 | extend(out[key], obj[key]);
41 | } else {
42 | out[key] = obj[key];
43 | }
44 | }
45 | }
46 | }
47 | }
48 |
49 | return out;
50 | };
51 |
52 | /**
53 | * Function that create a countdown section
54 | * @param countdown
55 | * @param parameters
56 | * @param typeClass
57 | * @returns {{full: (*|Element), amount: (*|Element), word: (*|Element)}}
58 | */
59 | createCountdownElt = function (countdown, parameters, typeClass) {
60 | var innerSectionTag,
61 | sectionTag,
62 | amountTag,
63 | wordTag;
64 |
65 | sectionTag = document.createElement('div');
66 | amountTag = document.createElement('span');
67 | wordTag = document.createElement('span');
68 | innerSectionTag = document.createElement('div');
69 |
70 | innerSectionTag.appendChild(amountTag);
71 | innerSectionTag.appendChild(wordTag);
72 | sectionTag.appendChild(innerSectionTag);
73 |
74 | sectionTag.classList.add(parameters.sectionClass);
75 | sectionTag.classList.add(typeClass);
76 | amountTag.classList.add(parameters.amountClass);
77 | wordTag.classList.add(parameters.wordClass);
78 |
79 | countdown.appendChild(sectionTag);
80 |
81 | return {
82 | full: sectionTag,
83 | amount: amountTag,
84 | word: wordTag
85 | };
86 | };
87 |
88 | /**
89 | * Function that create full countdown DOM elements calling createCountdownElt
90 | * @param parameters
91 | * @param countdown
92 | * @returns {{days: (*|Element), hours: (*|Element), minutes: (*|Element), seconds: (*|Element)}}
93 | */
94 | createElements = function (parameters, countdown) {
95 | var spanTag;
96 |
97 | if (!parameters.inline) {
98 | return {
99 | days: createCountdownElt(countdown, parameters, 'simply-days-section'),
100 | hours: createCountdownElt(countdown, parameters, 'simply-hours-section'),
101 | minutes: createCountdownElt(countdown, parameters, 'simply-minutes-section'),
102 | seconds: createCountdownElt(countdown, parameters, 'simply-seconds-section')
103 | };
104 | }
105 |
106 | spanTag = document.createElement('span');
107 | spanTag.classList.add(parameters.inlineClass);
108 | return spanTag;
109 | };
110 |
111 | /**
112 | * simplyCountdown, create and display the coundtown.
113 | * @param elt
114 | * @param args (parameters)
115 | */
116 | simplyCountdown = function (elt, args) {
117 | var parameters = extend({
118 | year: 2015,
119 | month: 6,
120 | day: 28,
121 | hours: 0,
122 | minutes: 0,
123 | seconds: 0,
124 | words: {
125 | days: 'day',
126 | hours: 'hour',
127 | minutes: 'minute',
128 | seconds: 'second',
129 | pluralLetter: 's'
130 | },
131 | plural: true,
132 | inline: false,
133 | enableUtc: true,
134 | onEnd: function () {
135 | return;
136 | },
137 | refresh: 1000,
138 | inlineClass: 'simply-countdown-inline',
139 | sectionClass: 'simply-section',
140 | amountClass: 'simply-amount',
141 | wordClass: 'simply-word',
142 | zeroPad: false
143 | }, args),
144 | interval,
145 | targetDate,
146 | targetTmpDate,
147 | now,
148 | nowUtc,
149 | secondsLeft,
150 | days,
151 | hours,
152 | minutes,
153 | seconds,
154 | cd = document.querySelectorAll(elt);
155 |
156 | targetTmpDate = new Date(
157 | parameters.year,
158 | parameters.month - 1,
159 | parameters.day,
160 | parameters.hours,
161 | parameters.minutes,
162 | parameters.seconds
163 | );
164 |
165 | if (parameters.enableUtc) {
166 | targetDate = new Date(
167 | targetTmpDate.getUTCFullYear(),
168 | targetTmpDate.getUTCMonth(),
169 | targetTmpDate.getUTCDate(),
170 | targetTmpDate.getUTCHours(),
171 | targetTmpDate.getUTCMinutes(),
172 | targetTmpDate.getUTCSeconds()
173 | );
174 | } else {
175 | targetDate = targetTmpDate;
176 | }
177 |
178 | Array.prototype.forEach.call(cd, function (countdown) {
179 | var fullCountDown = createElements(parameters, countdown),
180 | refresh;
181 |
182 | refresh = function () {
183 | var dayWord,
184 | hourWord,
185 | minuteWord,
186 | secondWord;
187 |
188 | now = new Date();
189 | if (parameters.enableUtc) {
190 | nowUtc = new Date(now.getFullYear(), now.getMonth(), now.getDate(),
191 | now.getHours(), now.getMinutes(), now.getSeconds());
192 | secondsLeft = (targetDate - nowUtc.getTime()) / 1000;
193 |
194 | } else {
195 | secondsLeft = (targetDate - now.getTime()) / 1000;
196 | }
197 |
198 | if (secondsLeft > 0) {
199 | days = parseInt(secondsLeft / 86400, 10);
200 | secondsLeft = secondsLeft % 86400;
201 |
202 | hours = parseInt(secondsLeft / 3600, 10);
203 | secondsLeft = secondsLeft % 3600;
204 |
205 | minutes = parseInt(secondsLeft / 60, 10);
206 | seconds = parseInt(secondsLeft % 60, 10);
207 | } else {
208 | days = 0;
209 | hours = 0;
210 | minutes = 0;
211 | seconds = 0;
212 | window.clearInterval(interval);
213 | parameters.onEnd();
214 | }
215 |
216 | if (parameters.plural) {
217 | dayWord = days > 1
218 | ? parameters.words.days + parameters.words.pluralLetter
219 | : parameters.words.days;
220 |
221 | hourWord = hours > 1
222 | ? parameters.words.hours + parameters.words.pluralLetter
223 | : parameters.words.hours;
224 |
225 | minuteWord = minutes > 1
226 | ? parameters.words.minutes + parameters.words.pluralLetter
227 | : parameters.words.minutes;
228 |
229 | secondWord = seconds > 1
230 | ? parameters.words.seconds + parameters.words.pluralLetter
231 | : parameters.words.seconds;
232 |
233 | } else {
234 | dayWord = parameters.words.days;
235 | hourWord = parameters.words.hours;
236 | minuteWord = parameters.words.minutes;
237 | secondWord = parameters.words.seconds;
238 | }
239 |
240 | /* display an inline countdown into a span tag */
241 | if (parameters.inline) {
242 | countdown.innerHTML =
243 | days + ' ' + dayWord + ', ' +
244 | hours + ' ' + hourWord + ', ' +
245 | minutes + ' ' + minuteWord + ', ' +
246 | seconds + ' ' + secondWord + '.';
247 |
248 | } else {
249 | fullCountDown.days.amount.textContent = (parameters.zeroPad && days.toString().length < 2 ? '0' : '') + days;
250 | fullCountDown.days.word.textContent = dayWord;
251 |
252 | fullCountDown.hours.amount.textContent = (parameters.zeroPad && hours.toString().length < 2 ? '0' : '') + hours;
253 | fullCountDown.hours.word.textContent = hourWord;
254 |
255 | fullCountDown.minutes.amount.textContent = (parameters.zeroPad && minutes.toString().length < 2 ? '0' : '') + minutes;
256 | fullCountDown.minutes.word.textContent = minuteWord;
257 |
258 | fullCountDown.seconds.amount.textContent = (parameters.zeroPad && seconds.toString().length < 2 ? '0' : '') + seconds;
259 | fullCountDown.seconds.word.textContent = secondWord;
260 | }
261 | };
262 |
263 | // Refresh immediately to prevent a Flash of Unstyled Content
264 | refresh();
265 | interval = window.setInterval(refresh, parameters.refresh);
266 | });
267 | };
268 |
269 | exports.simplyCountdown = simplyCountdown;
270 | }(window));
271 |
272 | /*global $, jQuery, simplyCountdown*/
273 | if (window.jQuery) {
274 | (function ($, simplyCountdown) {
275 | 'use strict';
276 |
277 | function simplyCountdownify(el, options) {
278 | simplyCountdown(el, options);
279 | }
280 |
281 | $.fn.simplyCountdown = function (options) {
282 | return simplyCountdownify(this.selector, options);
283 | };
284 | }(jQuery, simplyCountdown));
285 | }
286 |
--------------------------------------------------------------------------------