├── .DS_Store
├── .github
├── issue_template.md
└── pull_request_template.md
├── Articles.md
├── CONTRIBUTING.md
├── Favicon
├── android-chrome-192x192.png
├── android-chrome-512x512.png
├── apple-touch-icon.png
├── favicon-16x16.png
├── favicon-32x32.png
└── favicon.ico
├── LICENSE.md
├── Music-audio
├── Breathe.mp3
├── Calm.mp3
├── Courage.mp3
├── Dreamer.mp3
├── Happy.mp3
├── Peace.mp3
├── Solitude.mp3
├── Sunshine.mp3
└── Tomorrow.mp3
├── Music-img
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
├── 8.png
└── 9.png
├── README.md
├── chatwoot.js
├── css
├── Login.css
├── SignUp.css
├── all.min.css
├── animate.min.css
├── blogstyle.css
├── bootstrap.min.css
├── breathe.css
├── calm.css
├── courage.css
├── diary_style.css
├── dreamer.css
├── flaticon(1).css
├── flaticon.css
├── font-awesome.min.css
├── footer.css
├── happy.css
├── learning.css
├── lightbox.min.css
├── musicstyle.css
├── newstyle.css
├── owl.carousel.min.css
├── peace.css
├── pomodoro_timer.css
├── single.css
├── solitude.css
├── styleEnd.css
├── stylequiz.css
├── sunshine.css
└── tomorrow.css
├── html
├── Login.html
├── blog.html
├── breathe.html
├── calm.html
├── courage.html
├── diary.html
├── dreamer.html
├── end.html
├── footer.html
├── happy.html
├── learning.html
├── music.html
├── peace.html
├── pomodoro.html
├── quiz.html
├── single.html
├── solitude.html
├── sunshine.html
└── tomorrow.html
├── images file
├── 1030_kk_sitting_risks_mental_health_feat.jpg
├── Article-1.jpg
├── Articles.png
├── Features.png
├── Home.png
├── How_Title_Companies_Can_Promote_Positive_Mental_Health.jpeg
├── LapSadKid.jpg
├── MH1.jpg
├── MH2.jpg
├── MH3.jpeg
├── MH4.jpeg
├── MH5.jpg
├── MH6.jpeg
├── MH7.jpeg
├── MH8.jpeg
├── Mental_Physical_Health.png
├── Pacify-background.jpg
├── Quiz-Quest.png
├── Quiz-Result.png
├── Untitled-design-22-removebg-preview.png
├── carousel_image_1_modified.jpeg
├── carousel_image_2_modified.png
├── carousel_image_3_modified.png
├── carousel_image_4_modified.jpeg
├── carousel_image_5.jpeg
├── carousel_image_5.jpg
├── carousel_image_5_modified.jpeg
├── carousel_image_5_modified.jpg
├── github.png
├── main_image.png
├── mental-health2.jpg
├── pic.jpg
├── portfolio-1.jpg
├── portfolio-2.jpg
├── portfolio-3.jpg
├── portfolio-4.jpg
├── portfolio-5.jpg
├── portfolio-6.jpg
└── yoga.png
├── index.html
├── main.js
├── screenshots
├── Article-2.jpg
├── Screenshot from 2021-05-22 21-46-29.png
├── Screenshot from 2021-05-23 00-44-56.png
├── Screenshot1.png
├── Screenshot2.png
├── Screenshot3.png
└── Screenshot4.png
├── scripts
├── bootstrap.bundle.min.js
├── contact.js
├── easing.min.js
├── isotope.pkgd.min.js
├── jqBootstrapValidation.min.js
├── jquery-3.4.1.min.js
├── lightbox.min.js
├── mental_diary.js
├── owl.carousel.min.js
├── pomodoro-timer.js
├── quiz.js
├── script.js
└── wow.min.js
└── style.css
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/.DS_Store
--------------------------------------------------------------------------------
/.github/issue_template.md:
--------------------------------------------------------------------------------
1 | - **Do you want to request a *feature* or report a *bug*?**
2 | - **Do the checklist before filing an issue:**
3 |
4 | - [ ] bug report
5 | - [ ] feature request
6 |
7 |
8 | create a feature request
9 | ------------------------------------------------------------------
10 | - [ ] Have an idea for a feature?
11 | - [ ] Provide **screenshots** where appropriate
12 |
13 |
14 |
15 |
16 | create a bug report
17 | ------------------------------------------------------------------
18 |
19 | Make sure to add **all the information needed to understand the bug** so that someone can help. If the info is missing we'll add the 'Needs more information' label and close the issue until there is enough information.
20 |
21 | - [ ] Provide **screenshots** where appropriate
22 | - [ ] Provide a **minimal code snippet** / example that reproduces the bug.
23 |
24 | ## Expected Behavior
25 |
26 | ## Current Behavior
27 |
28 |
29 | ## Possible Solution
30 |
31 |
32 | ## Steps to Reproduce
33 |
34 |
35 | 1.
36 | 2.
37 | 3.
38 | 4.
39 |
40 | ## Context (Environment)
41 |
42 |
43 |
44 |
45 |
46 | ## Detailed Description
47 |
48 |
49 | ## Possible Implementation
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 | # Pull Request template
2 | Please, go through these steps before you submit a PR.
3 |
4 | Make sure you have done your changes in a separate branch. Branches MUST have descriptive names that start with either the `fix/` or `feature/` prefixes. Good examples are: `fix/signin-issue` or `feature/addded-home button`.
5 |
6 | # Describe your changes
7 |
8 |
9 | ### Issue number and link
10 | ### Fixes proposed in issue
11 | -------------------------------------------------------------------------------------
12 |
13 |
14 | ## Checklist:
15 |
16 | - [ ] My code follows the style guidelines of this project
17 | - [ ] I have performed a self-review of my code
18 | - [ ] Please ensure that there aren't other open [Pull Requests](../../../pulls) for the same update/change/feature/bugs?
19 | - [ ] The title pull request is a short description of the proposed changes.
20 |
21 | ## Screenshots
22 | add relevant files related to issue fixed
--------------------------------------------------------------------------------
/Articles.md:
--------------------------------------------------------------------------------
1 | ### Heading 1. -Even moderate physical activity has been shown to help prevent dementia.
2 |
3 | ## Highlight : "Cleaning the house and running errands are examples of small daily activities that can contribute to enhanced brain function."
4 |
5 | Content-
6 | To keep your brain healthy, you don't have to be a marathon runner. According to a study published online, regular walks through your neighborhood or excursions to the grocery store may still lessen your risk of dementia by a little amount.
7 |
8 | #image- Article-1
9 | Many studies had already shown that moderate- and vigorous-intensity physical activity were linked to a lower incidence of dementia.
10 | Not only that, but even moderate-intensity physical activity was linked to a lower risk.
11 |
12 | ### Heading 2. -The most detrimental practices to your mental health.
13 |
14 | ## Highlight: Too much sitting, a lack of socializing, insufficient sleep, and chronic stress are the four factors that have the greatest impact on cognitive function.
15 |
16 | Content-
17 | There are many factors that lead to poor brain health, but these four can have the largest impact. The good news is that they might also be the most straightforward to alter.
18 |
19 | #image- Article-2
20 | The average adult sits for six and a half hours every day, and this amount of time on a chair has a negative impact on the brain. Sitting too much, according to a 2018 study published in PLOS One, is connected to changes in a memory-related area of the brain. The medial temporal lobe (MTL), a brain region that creates new memories, was studied using MRI scans in persons aged 45 to 75. The scans were then compared to the average amount of hours people sat per day. MTL areas were thinner in those who sat the longest. MTL thinning, according to the researchers, can be a sign of cognitive decline and dementia.
21 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Contributing
2 |
3 | Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
4 |
5 | Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
6 |
7 | ## Issues and PRs
8 |
9 | If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them.
10 |
11 | We'd also love PRs. If you're thinking of a large PR, we advise opening up an issue first to talk about it, though! Look at the links below if you're not sure how to open a PR.
12 |
13 | ## Submitting a pull request
14 |
15 | 1. [Fork][fork] and clone the repository.
16 | 1. Configure and install the dependencies.
17 | 1. Make sure the tests pass on your machine.
18 | 1. Create a new branch: `git checkout -b my-branch-name`.
19 | 1. Make your change, add tests, and make sure the tests still pass.
20 | 1. Push to your fork and submit a pull request.
21 | 1. Pat your self on the back and wait for your pull request to be reviewed and merged.
22 |
23 | Here are a few things you can do that will increase the likelihood of your pull request being accepted:
24 |
25 | - Follow the style which is using standard.
26 | - Write and update tests.
27 | - Keep your changes as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
28 | - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
29 |
30 | Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you.
31 |
32 | ## GIT AND GITHUB
33 |
34 | Before continuing we want to clarify the difference between Git and Github. Git is a version control system(VCS) which is a tool to manage the history of our Source Code. GitHub is a hosting service for Git projects.
35 |
36 | We assume you have created an account on Github and installed Git on your System.
37 |
38 | Now tell Git your name and E-mail (used on Github) address.
39 |
40 | $ git config --global user.name "YOUR NAME"
41 | $ git config --global user.email "YOUR EMAIL ADDRESS"
42 |
43 |
44 | This is an important step to mark your commits to your name and email.
45 |
46 | ### FORK A PROJECT -
47 |
48 | You can use github explore - https://github.com/explore to find a project that interests you and match your skills. Once you find your cool project to workon, you can make a copy of project to your account. This process is called forking a project to your Github account. On Upper right side of project page on Github, you can see -
49 |
50 |
51 |
52 | Click on fork to create a copy of project to your account. This creates a separate copy for you to workon.
53 |
54 | ### FINDING A FEATURE OR BUG TO WORKON -
55 |
56 | Open Source projects always have something to workon and improves with each new release. You can see the issues section to find something you can solve or report a bug. The project managers always welcome new contributors and can guide you to solve the problem. You can find issues in the right section of project page.
57 |
58 |
59 |
60 | ### CLONE THE FORKED PROJECT -
61 |
62 | You have forked the project you want to contribute to your github account. To get this project on your development machine we use clone command of git.
63 |
64 | ```$ git clone https://github.com//.git```
65 | Now you have the project on your local machine.
66 |
67 | ### ADD A REMOTE (UPSTREAM) TO ORIGINAL PROJECT REPOSITORY
68 |
69 | Remote means the remote location of project on Github. By cloning, we have a remote called origin which points to your forked repository. Now we will add a remote to the original repository from where we had forked.
70 |
71 | $ cd
72 | $ git remote add upstream https://github.com//.git
73 |
74 | You will see the benefits of adding remote later.
75 |
76 | ### SYNCHRONIZING YOUR FORK -
77 |
78 | Open Source projects have a number of contributors who can push code anytime. So it is necessary to make your forked copy equal with the original repository. The remote added above called Upstream helps in this.
79 |
80 |
81 | $ git checkout master
82 | $ git fetch upstream
83 | $ git merge upstream/master
84 | $ git push origin master
85 |
86 |
87 | The last command pushes the latest code to your forked repository on Github. The origin is the remote pointing to your forked repository on github.
88 |
89 | ### CREATE A NEW BRANCH FOR A FEATURE OR BUGFIX -
90 |
91 | Normally, all repositories have a master branch which is considered to remain stable and all new features should be made in a separate branch and after completion merged into master branch. So we should create a new branch for our feature or bugfix and start working on the issue.
92 |
93 | ```$ git checkout -b ```
94 | This will create a new branch out of master branch. Now start working on the problem and commit your changes.
95 |
96 | $ git add --all
97 | $ git commit -m ""
98 |
99 |
100 | The first command adds all the files or you can add specific files by removing -a and adding the file names. The second command gives a message to your changes so you can know in future what changes this commit makes. If you are solving an issue on original repository, you should add the issue number like #35 to your commit message. This will show the reference to commits in the issue.
101 |
102 | ### REBASE YOUR FEATURE BRANCH WITH UPSTREAM-
103 |
104 | It can happen that your feature takes time to complete and other contributors are constantly pushing code. After completing the feature your feature branch should be rebase on latest changes to upstream master branch.
105 |
106 | $ git checkout
107 | $ git pull --rebase upstream master
108 |
109 | Now you get the latest commits from other contributors and check that your commits are compatible with the new commits. If there are any conflicts solve them.
110 |
111 | ### SQUASHING YOUR COMMITS-
112 |
113 | You have completed the feature, but you have made a number of commits which make less sense. You should squash your commits to make good commits.
114 |
115 | ```$ git rebase -i HEAD~5```
116 | This will open an editor which will allow you to squash the commits.
117 |
118 | ### PUSH CODE AND CREATE A PULL REQUEST -
119 |
120 | Till this point you have a new branch with the feature or bugfix you want in the project you had forked. Now push your new branch to your remote fork on github.
121 |
122 | ```$ git push origin ```
123 |
124 | Now you are ready to help the project by opening a pull request means you now tell the project managers to add the feature or bugfix to original repository. You can open a pull request by clicking on green icon -
125 |
126 |
127 |
128 | Remember your upstream base branch should be master and source should be your feature branch. Click on create pull request and add a name to your pull request. You can also describe your feature.
129 |
130 | Awesome! You have made your first contribution. If you have any doubts please let me know in the comments.
131 |
132 | #### BE OPEN!
133 |
--------------------------------------------------------------------------------
/Favicon/android-chrome-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Favicon/android-chrome-192x192.png
--------------------------------------------------------------------------------
/Favicon/android-chrome-512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Favicon/android-chrome-512x512.png
--------------------------------------------------------------------------------
/Favicon/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Favicon/apple-touch-icon.png
--------------------------------------------------------------------------------
/Favicon/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Favicon/favicon-16x16.png
--------------------------------------------------------------------------------
/Favicon/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Favicon/favicon-32x32.png
--------------------------------------------------------------------------------
/Favicon/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Favicon/favicon.ico
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Hackathon7
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 |
--------------------------------------------------------------------------------
/Music-audio/Breathe.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Breathe.mp3
--------------------------------------------------------------------------------
/Music-audio/Calm.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Calm.mp3
--------------------------------------------------------------------------------
/Music-audio/Courage.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Courage.mp3
--------------------------------------------------------------------------------
/Music-audio/Dreamer.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Dreamer.mp3
--------------------------------------------------------------------------------
/Music-audio/Happy.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Happy.mp3
--------------------------------------------------------------------------------
/Music-audio/Peace.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Peace.mp3
--------------------------------------------------------------------------------
/Music-audio/Solitude.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Solitude.mp3
--------------------------------------------------------------------------------
/Music-audio/Sunshine.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Sunshine.mp3
--------------------------------------------------------------------------------
/Music-audio/Tomorrow.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-audio/Tomorrow.mp3
--------------------------------------------------------------------------------
/Music-img/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/1.png
--------------------------------------------------------------------------------
/Music-img/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/2.png
--------------------------------------------------------------------------------
/Music-img/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/3.png
--------------------------------------------------------------------------------
/Music-img/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/4.png
--------------------------------------------------------------------------------
/Music-img/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/5.png
--------------------------------------------------------------------------------
/Music-img/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/6.png
--------------------------------------------------------------------------------
/Music-img/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/7.png
--------------------------------------------------------------------------------
/Music-img/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/8.png
--------------------------------------------------------------------------------
/Music-img/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hackathon7/Pacify-final/f933f14b12784796f8a99a668b675bacc5883b32/Music-img/9.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Pacify - A mental health awareness website
2 |
3 | ### [GirlScript Summer of Code 2022](https://gssoc.girlscript.tech/) Open Source Program
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | > This project is accepting contributions under [GirlScript Summer of Code 2022](https://gssoc.girlscript.tech/) - three months long Open Source program conducted by [GirlScript Foundation](https://gssoc.girlscript.tech/).
12 |
13 | ## Inspiration
14 |
15 | Mental health refers to a person's psychological, emotional, and social well-being; it influences what they feel and how they think, and behave.
16 | An emotionally fit and stable person always feels vibrant and truly alive and can easily manage emotionally difficult situations. But in today's times,
17 | mental sickness is becoming a growing issue..According to research conducted on adults, mental illness affects 19% of the adult population. Nearly one
18 | in every five children and adolescents on the globe has a mental illness. These alarming statistics reflect the wider prevalence of mental ill-health.
19 | This makes poor mental health a global problem needed to be solve as soon as possible.
20 |
21 | ## Project Description
22 |
23 | Pacify provides some instant and effective solution to this problem. Using this will help one to develop good mental habits and develop a positive and
24 | healthy mindset.
25 | Pacify provides various features:
26 |
27 | - **_Quiz_:** The quiz section helps you discover about the mental health problems you are currently dealing with by asking some questions regarding your daily
28 | behavior, actions and feelings.
29 |
30 | - **_Journal_:** Journaling can help reduce anxiety, lessen feelings of stress, and increase an individual's mental well-being. You can use the journal to write
31 | down your thoughts, feelings and emotions as it can free up your mind and re-install calmness.
32 |
33 | - **_Pomodoro Timer_:** In the pandemic, work level has greatly increased and a lot of people sit in front of their computers for prolonged periods of time. It
34 | is not healthy for your mind to work for long periods of time without a break. Using the Pomodoro Timer feature you can implement small breaks into your work.
35 |
36 | - **_Yoga Gallery_:** Mental health is not only about the mind, it is also about the body. It is crucial for you to occasionally take some time and just relax your whole body. Yoga is a great way of doing this. You can search and sort through the gallery to find the type of yoga and poses that you like the best.
37 |
38 | **_Articles_:** You can read about some useful and informative information.
39 |
40 | ## Tech Stack
41 | 
42 | 
43 | 
44 | 
45 | 
46 |
47 | ## What you can contribute
48 | - Documentation
49 | - Any new feature
50 | - Add sign-up form
51 | - Chat-bot
52 | - Add backend
53 | - Many more relevant features on acceptance
54 |
55 | ## License
56 |
57 | [](https://opensource.org/licenses/MIT)
58 |
59 | ## Project Images
60 | **_Home Page_:**
61 | 
62 |
63 | **_Features_:**
64 | 
65 |
66 | **_Articles_:**
67 | 
68 |
69 | **_Quiz_:**
70 | 
71 |
72 | **_Quiz Result_:**
73 | 
74 |
75 | ## Project Maintainers
76 |
77 |
103 | ## Contributing
104 |
105 | Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
106 |
107 | Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
108 |
109 | ## Issues and PRs
110 |
111 | If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them.
112 |
113 | We'd also love PRs. If you're thinking of a large PR, we advise opening up an issue first to talk about it, though! Look at the links below if you're not sure how to open a PR.
114 |
115 | ## Submitting a pull request
116 |
117 | 1. [Fork][fork] and clone the repository.
118 | 1. Configure and install the dependencies.
119 | 1. Make sure the tests pass on your machine.
120 | 1. Create a new branch: `git checkout -b my-branch-name`.
121 | 1. Make your change, add tests, and make sure the tests still pass.
122 | 1. Push to your fork and submit a pull request.
123 | 1. Pat your self on the back and wait for your pull request to be reviewed and merged.
124 |
125 | Here are a few things you can do that will increase the likelihood of your pull request being accepted:
126 |
127 | - Follow the style which is using standard.
128 | - Write and update tests.
129 | - Keep your changes as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
130 | - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
131 |
132 | Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you.
133 |
134 | ## GIT AND GITHUB
135 |
136 | Before continuing we want to clarify the difference between Git and Github. Git is a version control system(VCS) which is a tool to manage the history of our Source Code. GitHub is a hosting service for Git projects.
137 |
138 | We assume you have created an account on Github and installed Git on your System.
139 |
140 | Now tell Git your name and E-mail (used on Github) address.
141 |
142 | $ git config --global user.name "YOUR NAME"
143 | $ git config --global user.email "YOUR EMAIL ADDRESS"
144 |
145 |
146 | This is an important step to mark your commits to your name and email.
147 |
148 | ### FORK A PROJECT -
149 |
150 | You can use github explore - https://github.com/explore to find a project that interests you and match your skills. Once you find your cool project to workon, you can make a copy of project to your account. This process is called forking a project to your Github account. On Upper right side of project page on Github, you can see -
151 |
152 |
153 |
154 | Click on fork to create a copy of project to your account. This creates a separate copy for you to work on.
155 |
156 | ### FINDING A FEATURE OR BUG TO WORKON -
157 |
158 | Open Source projects always have something to work on and improves with each new release. You can see the issues section to find something you can solve or report a bug. The project managers always welcome new contributors and can guide you to solve the problem. You can find issues in the right section of project page.
159 |
160 |
161 |
162 | ### CLONE THE FORKED PROJECT -
163 |
164 | You have forked the project you want to contribute to your github account. To get this project on your development machine we use clone command of git.
165 |
166 | ```$ git clone https://github.com//.git```
167 | Now you have the project on your local machine.
168 |
169 | ### ADD A REMOTE (UPSTREAM) TO ORIGINAL PROJECT REPOSITORY
170 |
171 | Remote means the remote location of project on Github. By cloning, we have a remote called origin which points to your forked repository. Now we will add a remote to the original repository from where we had forked.
172 |
173 | $ cd
174 | $ git remote add upstream https://github.com//.git
175 |
176 | You will see the benefits of adding remote later.
177 |
178 | ### SYNCHRONIZING YOUR FORK -
179 |
180 | Open Source projects have a number of contributors who can push code anytime. So it is necessary to make your forked copy equal with the original repository. The remote added above called Upstream helps in this.
181 |
182 |
183 | $ git checkout master
184 | $ git fetch upstream
185 | $ git merge upstream/master
186 | $ git push origin master
187 |
188 |
189 | The last command pushes the latest code to your forked repository on Github. The origin is the remote pointing to your forked repository on github.
190 |
191 | ### CREATE A NEW BRANCH FOR A FEATURE OR BUGFIX -
192 |
193 | Normally, all repositories have a master branch which is considered to remain stable and all new features should be made in a separate branch and after completion merged into master branch. So we should create a new branch for our feature or bugfix and start working on the issue.
194 |
195 | ```$ git checkout -b ```
196 | This will create a new branch out of master branch. Now start working on the problem and commit your changes.
197 |
198 | $ git add --all
199 | $ git commit -m ""
200 |
201 |
202 | The first command adds all the files or you can add specific files by removing -a and adding the file names. The second command gives a message to your changes so you can know in future what changes this commit makes. If you are solving an issue on original repository, you should add the issue number like #35 to your commit message. This will show the reference to commits in the issue.
203 |
204 | ### REBASE YOUR FEATURE BRANCH WITH UPSTREAM-
205 |
206 | It can happen that your feature takes time to complete and other contributors are constantly pushing code. After completing the feature your feature branch should be rebase on latest changes to upstream master branch.
207 |
208 | $ git checkout
209 | $ git pull --rebase upstream master
210 |
211 | Now you get the latest commits from other contributors and check that your commits are compatible with the new commits. If there are any conflicts solve them.
212 |
213 | ### SQUASHING YOUR COMMITS-
214 |
215 | You have completed the feature, but you have made a number of commits which make less sense. You should squash your commits to make good commits.
216 |
217 | ```$ git rebase -i HEAD~5```
218 | This will open an editor which will allow you to squash the commits.
219 |
220 | ### PUSH CODE AND CREATE A PULL REQUEST -
221 |
222 | Till this point you have a new branch with the feature or bugfix you want in the project you had forked. Now push your new branch to your remote fork on github.
223 |
224 | ```$ git push origin ```
225 |
226 | Now you are ready to help the project by opening a pull request means you now tell the project managers to add the feature or bugfix to original repository. You can open a pull request by clicking on green icon -
227 |
228 |
229 |
230 | Remember your upstream base branch should be master and source should be your feature branch. Click on create pull request and add a name to your pull request. You can also describe your feature.
231 |
232 | Awesome! You have made your first contribution. If you have any doubts please let me know in the comments.
233 |
234 | #### BE OPEN!
235 |
236 |
Many contemporary personality psychologists believe that there are five basic dimensions of
79 | personality,
80 | often
81 | referred
82 | to as the "Big 5" personality traits. The five broad personality traits described by the theory
83 | are
84 | extraversion
85 | (also
86 | often spelled extroversion), agreeableness, openness, conscientiousness, and neuroticism.
87 |
88 |
It is important to note that each of the five personality factors represents a range between two
89 | extremes. For example,
90 | extraversion represents a continuum between extreme extraversion and extreme introversion. In
91 | the real world, most
92 | people lie somewhere in between the two polar ends of each dimension.
93 |
94 |
95 |
97 |
98 |
99 |
100 |
101 |
102 |
The Five Personality Traits
103 |
Research suggests that both biological and environmental influences play a role in shaping our
104 | personalities. Twin
105 | studies suggest that both nature and nurture play a role in the development of each of the five
106 | personality factors.
107 | Studies have shown that maturation may have an impact on the five traits. As people age, they
108 | tend to become less
109 | extraverted, less neurotic, and less open to the experience. Agreeableness and
110 | conscientiousness, on the other hand,
111 | tend to increase as people grow older.
112 |
Longitudinal studies also suggest that these big five personality traits tend to be relatively
113 | stable over the course of
114 | adulthood. One study of working-age adults found that personality tended to be stable over a
115 | four-year period and
116 | displayed little change as a result of adverse life events.
117 |
118 |
119 |
Openness
120 |
This trait features characteristics such as imagination and insight.They are curious
121 | about the world and other people and eager to learn new things and
122 | enjoy new experiences.
123 |
124 |
125 |
Conscientiousness
126 |
Highly conscientious people tend to be organized and mindful of details. They plan ahead,
127 | think about how their behavior
128 | affects others, and are mindful of deadlines.
129 |
130 |
131 |
Extraversion
132 |
Extraversion (or extroversion) is characterized by excitability, sociability,
133 | talkativeness, assertiveness, and high
134 | amounts of emotional expressiveness.
135 |
136 |
137 |
Agreeableness
138 |
This personality dimension includes attributes such as trust, altruism, kindness,
139 | affection, and other prosocial
140 | behaviors.
141 |
142 |
143 |
Neuroticism
144 |
Neuroticism is a trait characterized by sadness, moodiness, and emotional instability.
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
Most common characteristics
153 |
This section lists the most common characteristics of people with the following personality traits. High denotes a person who has these traits highly.
154 | Low denotes the person doesn't have much of these traits.
155 |
1.Openness
156 |
157 |
158 |
159 |
High
160 |
161 |
Very creative
162 |
Open to trying new things
163 |
Focussed on tackling new challenges
164 |
Happy to think about abstract concepts
165 |
166 |
167 |
168 |
Low
169 |
170 |
Dislike change
171 |
Not open to trying new things
172 |
Resists new ideas
173 |
Not very creative
174 |
175 |
176 |
177 |
178 |
Conscientiousness
179 |
180 |
181 |
182 |
183 |
High
184 |
185 |
Spends time preparing
186 |
Finishes important tasks right away
187 |
Pays attention to detail
188 |
Enjoys having a set schedule
189 |
190 |
191 |
192 |
Low
193 |
194 |
Dislikes structure and schedules
195 |
Procrastinates important tasks
196 |
Makes messes and doesn't take care of things
197 |
Fails to complete necessary or assigned tasks
198 |
199 |
200 |
201 |
202 |
Extraversion
203 |
204 |
205 |
206 |
High
207 |
208 |
Enjoys being the center of attention
209 |
Likes to start conversations
210 |
Feels energized when around other people
211 |
Say things before thinking about them
212 |
213 |
214 |
215 |
Low
216 |
217 |
Dislikes making small talk
218 |
Carefully thinks things through before speaking
219 |
Finds it difficult to start conversations
220 |
Feels exhausted when having to socialize a lot
221 |
222 |
223 |
224 |
225 |
Agreeableness
226 |
227 |
228 |
229 |
High
230 |
231 |
Has a great deal of interest in other people
232 |
Feels empathy and concern for other people
233 |
Enjoys helping and contributing to the happiness of other people
");
39 | $('#success > .alert-danger').html("");
41 | $('#success > .alert-danger').append($("").text("Sorry " + name + ", it seems that our mail server is not responding. Please try again later!"));
42 | $('#success > .alert-danger').append('
');
43 | $('#contactForm').trigger("reset");
44 | },
45 | complete: function () {
46 | setTimeout(function () {
47 | $this.prop("disabled", false);
48 | }, 1000);
49 | }
50 | });
51 | },
52 | filter: function () {
53 | return $(this).is(":visible");
54 | },
55 | });
56 |
57 | $("a[data-toggle=\"tab\"]").click(function (e) {
58 | e.preventDefault();
59 | $(this).tab("show");
60 | });
61 | });
62 |
63 | $('#name').focus(function () {
64 | $('#success').html('');
65 | });
66 |
--------------------------------------------------------------------------------
/scripts/easing.min.js:
--------------------------------------------------------------------------------
1 | !function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,c=1.70158,o=1.525*c,s=2*a/3,f=2*a/4.5;n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-(t(2,20*n-10)*r((20*n-11.125)*f))/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return(c+1)*n*n*n-c*n*n},easeOutBack:function(n){return 1+(c+1)*t(n-1,3)+c*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-o)/2:(t(2*n-2,2)*((o+1)*(2*n-2)+o)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}})});
2 |
--------------------------------------------------------------------------------
/scripts/jqBootstrapValidation.min.js:
--------------------------------------------------------------------------------
1 | !function(a){var e=[],t={options:{prependExistingHelpBlock:!1,sniffHtml:!0,preventSubmit:!0,submitError:!1,submitSuccess:!1,semanticallyStrict:!1,autoAdd:{helpBlocks:!0},filter:function(){return!0}},methods:{init:function(o){var r=a.extend(!0,{},t);r.options=a.extend(!0,r.options,o);var l=a.unique(this.map(function(){return a(this).parents("form")[0]}).toArray());return a(l).bind("submit",function(e){var t=a(this),i=0,n=t.find("input,textarea,select").not("[type=submit],[type=image]").filter(r.options.filter);n.trigger("submit.validation").trigger("validationLostFocus.validation"),n.each(function(e,t){var n=a(t).parents(".control-group").first();n.hasClass("warning")&&(n.removeClass("warning").addClass("error"),i++)}),n.trigger("validationLostFocus.validation"),i?(r.options.preventSubmit&&e.preventDefault(),t.addClass("error"),a.isFunction(r.options.submitError)&&r.options.submitError(t,e,n.jqBootstrapValidation("collectErrors",!0))):(t.removeClass("error"),a.isFunction(r.options.submitSuccess)&&r.options.submitSuccess(t,e))}),this.each(function(){var t=a(this),o=t.parents(".control-group").first(),l=o.find(".help-block").first(),s=t.parents("form").first(),d=[];if(!l.length&&r.options.autoAdd&&r.options.autoAdd.helpBlocks&&(l=a(''),o.find(".controls").append(l),e.push(l[0])),r.options.sniffHtml){var c="";if(void 0!==t.attr("pattern")&&(c="Not in the expected format\x3c!-- data-validation-pattern-message to override --\x3e",t.data("validationPatternMessage")&&(c=t.data("validationPatternMessage")),t.data("validationPatternMessage",c),t.data("validationPatternRegex",t.attr("pattern"))),void 0!==t.attr("max")||void 0!==t.attr("aria-valuemax")){var v=void 0!==t.attr("max")?t.attr("max"):t.attr("aria-valuemax");c="Too high: Maximum of '"+v+"'\x3c!-- data-validation-max-message to override --\x3e",t.data("validationMaxMessage")&&(c=t.data("validationMaxMessage")),t.data("validationMaxMessage",c),t.data("validationMaxMax",v)}if(void 0!==t.attr("min")||void 0!==t.attr("aria-valuemin")){var u=void 0!==t.attr("min")?t.attr("min"):t.attr("aria-valuemin");c="Too low: Minimum of '"+u+"'\x3c!-- data-validation-min-message to override --\x3e",t.data("validationMinMessage")&&(c=t.data("validationMinMessage")),t.data("validationMinMessage",c),t.data("validationMinMin",u)}void 0!==t.attr("maxlength")&&(c="Too long: Maximum of '"+t.attr("maxlength")+"' characters\x3c!-- data-validation-maxlength-message to override --\x3e",t.data("validationMaxlengthMessage")&&(c=t.data("validationMaxlengthMessage")),t.data("validationMaxlengthMessage",c),t.data("validationMaxlengthMaxlength",t.attr("maxlength"))),void 0!==t.attr("minlength")&&(c="Too short: Minimum of '"+t.attr("minlength")+"' characters\x3c!-- data-validation-minlength-message to override --\x3e",t.data("validationMinlengthMessage")&&(c=t.data("validationMinlengthMessage")),t.data("validationMinlengthMessage",c),t.data("validationMinlengthMinlength",t.attr("minlength"))),void 0===t.attr("required")&&void 0===t.attr("aria-required")||(c=r.builtInValidators.required.message,t.data("validationRequiredMessage")&&(c=t.data("validationRequiredMessage")),t.data("validationRequiredMessage",c)),void 0!==t.attr("type")&&"number"===t.attr("type").toLowerCase()&&(c=r.builtInValidators.number.message,t.data("validationNumberMessage")&&(c=t.data("validationNumberMessage")),t.data("validationNumberMessage",c)),void 0!==t.attr("type")&&"email"===t.attr("type").toLowerCase()&&(c="Not a valid email address\x3c!-- data-validator-validemail-message to override --\x3e",t.data("validationValidemailMessage")?c=t.data("validationValidemailMessage"):t.data("validationEmailMessage")&&(c=t.data("validationEmailMessage")),t.data("validationValidemailMessage",c)),void 0!==t.attr("minchecked")&&(c="Not enough options checked; Minimum of '"+t.attr("minchecked")+"' required\x3c!-- data-validation-minchecked-message to override --\x3e",t.data("validationMincheckedMessage")&&(c=t.data("validationMincheckedMessage")),t.data("validationMincheckedMessage",c),t.data("validationMincheckedMinchecked",t.attr("minchecked"))),void 0!==t.attr("maxchecked")&&(c="Too many options checked; Maximum of '"+t.attr("maxchecked")+"' required\x3c!-- data-validation-maxchecked-message to override --\x3e",t.data("validationMaxcheckedMessage")&&(c=t.data("validationMaxcheckedMessage")),t.data("validationMaxcheckedMessage",c),t.data("validationMaxcheckedMaxchecked",t.attr("maxchecked")))}void 0!==t.data("validation")&&(d=t.data("validation").split(",")),a.each(t.data(),function(a,e){var t=a.replace(/([A-Z])/g,",$1").split(",");"validation"===t[0]&&t[1]&&d.push(t[1])});var m=d,g=[];do{a.each(d,function(a,e){d[a]=i(e)}),d=a.unique(d),g=[],a.each(m,function(e,n){if(void 0!==t.data("validation"+n+"Shortcut"))a.each(t.data("validation"+n+"Shortcut").split(","),function(a,e){g.push(e)});else if(r.builtInValidators[n.toLowerCase()]){var o=r.builtInValidators[n.toLowerCase()];"shortcut"===o.type.toLowerCase()&&a.each(o.shortcut.split(","),function(a,e){e=i(e),g.push(e),d.push(e)})}}),m=g}while(m.length>0);var h={};a.each(d,function(e,n){var o=t.data("validation"+n+"Message"),l=void 0!==o,s=!1;if(o=o||"'"+n+"' validation failed \x3c!-- Add attribute 'data-validation-"+n.toLowerCase()+"-message' to input to change this message --\x3e",a.each(r.validatorTypes,function(e,r){void 0===h[e]&&(h[e]=[]),s||void 0===t.data("validation"+n+i(r.name))||(h[e].push(a.extend(!0,{name:i(r.name),message:o},r.init(t,n))),s=!0)}),!s&&r.builtInValidators[n.toLowerCase()]){var d=a.extend(!0,{},r.builtInValidators[n.toLowerCase()]);l&&(d.message=o);var c=d.type.toLowerCase();"shortcut"===c?s=!0:a.each(r.validatorTypes,function(e,o){void 0===h[e]&&(h[e]=[]),s||c!==e.toLowerCase()||(t.data("validation"+n+i(o.name),d[o.name.toLowerCase()]),h[c].push(a.extend(d,o.init(t,n))),s=!0)})}s||a.error("Cannot find validation info for '"+n+"'")}),l.data("original-contents",l.data("original-contents")?l.data("original-contents"):l.html()),l.data("original-role",l.data("original-role")?l.data("original-role"):l.attr("role")),o.data("original-classes",o.data("original-clases")?o.data("original-classes"):o.attr("class")),t.data("original-aria-invalid",t.data("original-aria-invalid")?t.data("original-aria-invalid"):t.attr("aria-invalid")),t.bind("validation.validation",function(e,i){var o=n(t),l=[];return a.each(h,function(e,n){(o||o.length||i&&i.includeEmpty||r.validatorTypes[e].blockSubmit&&i&&i.submitting)&&a.each(n,function(a,i){r.validatorTypes[e].validate(t,o,i)&&l.push(i.message)})}),l}),t.bind("getValidators.validation",function(){return h}),t.bind("submit.validation",function(){return t.triggerHandler("change.validation",{submitting:!0})}),t.bind(["keyup","focus","blur","click","keydown","keypress","change"].join(".validation ")+".validation",function(e,i){var d=n(t),c=[];o.find("input,textarea,select").each(function(e,n){var o=c.length;if(a.each(a(n).triggerHandler("validation.validation",i),function(a,e){c.push(e)}),c.length>o)a(n).attr("aria-invalid","true");else{var r=t.data("original-aria-invalid");a(n).attr("aria-invalid",void 0!==r&&r)}}),s.find("input,select,textarea").not(t).not('[name="'+t.attr("name")+'"]').trigger("validationLostFocus.validation"),(c=a.unique(c.sort())).length?(o.removeClass("success error").addClass("warning"),r.options.semanticallyStrict&&1===c.length?l.html(c[0]+(r.options.prependExistingHelpBlock?l.data("original-contents"):"")):l.html('
'+c.join("
")+"
"+(r.options.prependExistingHelpBlock?l.data("original-contents"):""))):(o.removeClass("warning error success"),d.length>0&&o.addClass("success"),l.html(l.data("original-contents"))),"blur"===e.type&&o.removeClass("success")}),t.bind("validationLostFocus.validation",function(){o.removeClass("success")})})},destroy:function(){return this.each(function(){var t=a(this),i=t.parents(".control-group").first(),n=i.find(".help-block").first();t.unbind(".validation"),n.html(n.data("original-contents")),i.attr("class",i.data("original-classes")),t.attr("aria-invalid",t.data("original-aria-invalid")),n.attr("role",t.data("original-role")),e.indexOf(n[0])>-1&&n.remove()})},collectErrors:function(e){var t={};return this.each(function(e,i){var n=a(i),o=n.attr("name"),r=n.triggerHandler("validation.validation",{includeEmpty:!0});t[o]=a.extend(!0,r,t[o])}),a.each(t,function(a,e){0===e.length&&delete t[a]}),t},hasErrors:function(){var e=[];return this.each(function(t,i){e=e.concat(a(i).triggerHandler("getValidators.validation")?a(i).triggerHandler("validation.validation",{submitting:!0}):[])}),e.length>0},override:function(e){t=a.extend(!0,t,e)}},validatorTypes:{callback:{name:"callback",init:function(a,e){return{validatorName:e,callback:a.data("validation"+e+"Callback"),lastValue:a.val(),lastValid:!0,lastFinished:!0}},validate:function(a,e,t){if(t.lastValue===e&&t.lastFinished)return!t.lastValid;if(!0===t.lastFinished){t.lastValue=e,t.lastValid=!0,t.lastFinished=!1;var i=t,n=a;!function(a,e){for(var t=Array.prototype.slice.call(arguments).splice(2),i=a.split("."),n=i.pop(),o=0;o0&&t.negative)},blockSubmit:!0},match:{name:"match",init:function(a,e){var t=a.parents("form").first().find('[name="'+a.data("validation"+e+"Match")+'"]').first();return t.bind("validation.validation",function(){a.trigger("change.validation",{submitting:!0})}),{element:t}},validate:function(a,e,t){return e!==t.element.val()&&!t.negative||e===t.element.val()&&t.negative},blockSubmit:!0},max:{name:"max",init:function(a,e){return{max:a.data("validation"+e+"Max")}},validate:function(a,e,t){return parseFloat(e,10)>parseFloat(t.max,10)&&!t.negative||parseFloat(e,10)<=parseFloat(t.max,10)&&t.negative}},min:{name:"min",init:function(a,e){return{min:a.data("validation"+e+"Min")}},validate:function(a,e,t){return parseFloat(e)=parseFloat(t.min)&&t.negative}},maxlength:{name:"maxlength",init:function(a,e){return{maxlength:a.data("validation"+e+"Maxlength")}},validate:function(a,e,t){return e.length>t.maxlength&&!t.negative||e.length<=t.maxlength&&t.negative}},minlength:{name:"minlength",init:function(a,e){return{minlength:a.data("validation"+e+"Minlength")}},validate:function(a,e,t){return e.length=t.minlength&&t.negative}},maxchecked:{name:"maxchecked",init:function(a,e){var t=a.parents("form").first().find('[name="'+a.attr("name")+'"]');return t.bind("click.validation",function(){a.trigger("change.validation",{includeEmpty:!0})}),{maxchecked:a.data("validation"+e+"Maxchecked"),elements:t}},validate:function(a,e,t){return t.elements.filter(":checked").length>t.maxchecked&&!t.negative||t.elements.filter(":checked").length<=t.maxchecked&&t.negative},blockSubmit:!0},minchecked:{name:"minchecked",init:function(a,e){var t=a.parents("form").first().find('[name="'+a.attr("name")+'"]');return t.bind("click.validation",function(){a.trigger("change.validation",{includeEmpty:!0})}),{minchecked:a.data("validation"+e+"Minchecked"),elements:t}},validate:function(a,e,t){return t.elements.filter(":checked").length=t.minchecked&&t.negative},blockSubmit:!0}},builtInValidators:{email:{name:"Email",type:"shortcut",shortcut:"validemail"},validemail:{name:"Validemail",type:"regex",regex:"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}",message:"Not a valid email address\x3c!-- data-validator-validemail-message to override --\x3e"},passwordagain:{name:"Passwordagain",type:"match",match:"password",message:"Does not match the given password\x3c!-- data-validator-paswordagain-message to override --\x3e"},positive:{name:"Positive",type:"shortcut",shortcut:"number,positivenumber"},negative:{name:"Negative",type:"shortcut",shortcut:"number,negativenumber"},number:{name:"Number",type:"regex",regex:"([+-]?\\d+(\\.\\d*)?([eE][+-]?[0-9]+)?)?",message:"Must be a number\x3c!-- data-validator-number-message to override --\x3e"},integer:{name:"Integer",type:"regex",regex:"[+-]?\\d+",message:"No decimal places allowed\x3c!-- data-validator-integer-message to override --\x3e"},positivenumber:{name:"Positivenumber",type:"min",min:0,message:"Must be a positive number\x3c!-- data-validator-positivenumber-message to override --\x3e"},negativenumber:{name:"Negativenumber",type:"max",max:0,message:"Must be a negative number\x3c!-- data-validator-negativenumber-message to override --\x3e"},required:{name:"Required",type:"required",message:"This is required\x3c!-- data-validator-required-message to override --\x3e"},checkone:{name:"Checkone",type:"minchecked",minchecked:1,message:"Check at least one option\x3c!-- data-validation-checkone-message to override --\x3e"}}},i=function(a){return a.toLowerCase().replace(/(^|\s)([a-z])/g,function(a,e,t){return e+t.toUpperCase()})},n=function(e){var t=e.val(),i=e.attr("type");return"checkbox"===i&&(t=e.is(":checked")?t:""),"radio"===i&&(t=a('input[name="'+e.attr("name")+'"]:checked').length>0?t:""),t};a.fn.jqBootstrapValidation=function(e){return t.methods[e]?t.methods[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?(a.error("Method "+e+" does not exist on jQuery.jqBootstrapValidation"),null):t.methods.init.apply(this,arguments)},a.jqBootstrapValidation=function(e){a(":input").not("[type=image],[type=submit]").jqBootstrapValidation.apply(this,arguments)}}(jQuery);
--------------------------------------------------------------------------------
/scripts/lightbox.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Lightbox v2.10.0
3 | * by Lokesh Dhakar
4 | *
5 | * More info:
6 | * http://lokeshdhakar.com/projects/lightbox2/
7 | *
8 | * Copyright 2007, 2018 Lokesh Dhakar
9 | * Released under the MIT license
10 | * https://github.com/lokesh/lightbox2/blob/master/LICENSE
11 | *
12 | * @preserve
13 | */
14 | !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b(require("jquery")):a.lightbox=b(a.jQuery)}(this,function(a){function b(b){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=a.extend({},this.constructor.defaults),this.option(b)}return b.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},b.prototype.option=function(b){a.extend(this.options,b)},b.prototype.imageCountLabel=function(a,b){return this.options.albumLabel.replace(/%1/g,a).replace(/%2/g,b)},b.prototype.init=function(){var b=this;a(document).ready(function(){b.enable(),b.build()})},b.prototype.enable=function(){var b=this;a("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(c){return b.start(a(c.currentTarget)),!1})},b.prototype.build=function(){if(!(a("#lightbox").length>0)){var b=this;a('