├── .gitignore
├── LICENSE
├── README.md
├── bs-config.json
├── build
└── contracts
│ ├── EMRContract.json
│ └── Migrations.json
├── contracts
├── EMRContract.sol
└── Migrations.sol
├── docs
├── AdminProfileView.html
├── AdminSliderbarContainer.html
├── Appointment.html
├── Documents.html
├── EMRContract.json
├── Migrations.json
├── ProfileEdit.html
├── ProfileView.html
├── SliderbarContainer.html
├── css
│ ├── main.css
│ ├── material-dashboard.css
│ ├── material-dashboard.css.map
│ └── material-dashboard.min.css
├── images
│ ├── doc1.gif
│ ├── loading.gif
│ └── sidebar-1.jpg
├── index.html
├── js-utils
│ ├── core
│ │ ├── bootstrap-material-design.min.js
│ │ ├── jquery.min.js
│ │ └── popper.min.js
│ ├── main.js
│ ├── material-dashboard.js
│ ├── material-dashboard.js.map
│ ├── material-dashboard.min.js
│ └── plugins
│ │ ├── bootstrap-notify.js
│ │ ├── chartist.min.js
│ │ └── perfect-scrollbar.jquery.min.js
└── js
│ ├── app.js
│ ├── bootstrap.min.js
│ ├── truffle-contract.min.js
│ └── web3.min.js
├── migrations
├── 1_initial_migration.js
└── 2_deploy_contracts.js
├── package.json
├── src
├── AdminProfileView.html
├── AdminSliderbarContainer.html
├── Appointment.html
├── Documents.html
├── ProfileEdit.html
├── ProfileView.html
├── SliderbarContainer.html
├── css
│ ├── main.css
│ ├── material-dashboard.css
│ ├── material-dashboard.css.map
│ └── material-dashboard.min.css
├── images
│ ├── doc1.gif
│ ├── loading.gif
│ └── sidebar-1.jpg
├── index.html
├── js-utils
│ ├── core
│ │ ├── bootstrap-material-design.min.js
│ │ ├── jquery.min.js
│ │ └── popper.min.js
│ ├── main.js
│ ├── material-dashboard.js
│ ├── material-dashboard.js.map
│ ├── material-dashboard.min.js
│ └── plugins
│ │ ├── bootstrap-notify.js
│ │ ├── chartist.min.js
│ │ └── perfect-scrollbar.jquery.min.js
└── js
│ ├── app.js
│ ├── bootstrap.min.js
│ ├── truffle-contract.min.js
│ └── web3.min.js
├── test
└── EMR.js
├── truffle-config.js
├── truffle.js
└── webpack.config.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | package-lock.json*
8 | INSTRUCTIONS.txt
9 | HTML
10 |
11 | # Runtime data
12 | pids
13 | *.pid
14 | *.seed
15 | *.pid.lock
16 |
17 | # Directory for instrumented libs generated by jscoverage/JSCover
18 | lib-cov
19 |
20 | # Coverage directory used by tools like istanbul
21 | coverage
22 |
23 | # nyc test coverage
24 | .nyc_output
25 |
26 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
27 | .grunt
28 |
29 | # Bower dependency directory (https://bower.io/)
30 | bower_components
31 |
32 | # node-waf configuration
33 | .lock-wscript
34 |
35 | # Compiled binary addons (https://nodejs.org/api/addons.html)
36 | build/Release
37 |
38 | # Dependency directories
39 | node_modules/
40 | jspm_packages/
41 |
42 | # TypeScript v1 declaration files
43 | typings/
44 |
45 | # Optional npm cache directory
46 | .npm
47 |
48 | # Optional eslint cache
49 | .eslintcache
50 |
51 | # Optional REPL history
52 | .node_repl_history
53 |
54 | # Output of 'npm pack'
55 | *.tgz
56 |
57 | # Yarn Integrity file
58 | .yarn-integrity
59 |
60 | # dotenv environment variables file
61 | .env
62 |
63 | # next.js build output
64 | .next
65 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Blockchain-EMR
2 | Blockchain EMR is a blockchain based electronic health records and medical practice management solution.
3 |
4 | # SAFIANT MEDDATA
5 | To-Do Task List:
6 |
7 | Patient Demographics:
8 | 1) Track patient demographics
9 | 2) Primary information (name, date of birth, sex, identification)
10 | 3) Marital status
11 | 4) Contact information of patient and patient's employer
12 | 5) Primary provider
13 | 6) HIPAA information
14 | 7) Language and ethnicity
15 | 8) Insurance coverage
16 | 9) Deceased Tracking
17 |
18 | Patient Scheduling:
19 | 1) Patient Tracking and Reporting
20 | 2) Patient appointment
21 | 3) Calendar features include:
22 | 3.1) Find open appointment slots
23 | 3.2) Categories for appointment types
24 | 3.3) Repeating appointments
25 |
26 | Medical Records:
27 | 1) Medical Issues
28 | 2) Medications
29 | 3) Forms and clinical notes:
30 | 3.1) growth charts included
31 | 3.2) note
32 | 3.3) Review of systems
33 | 4) Patient Reports
34 | 5) Referrals
35 | 6) Patient Notes
36 | 7) Disclosures
37 | 8) document management
38 |
39 | Prescriptions:
40 | 1) Track patient prescriptions and medications
41 | 2) Create and send prescriptions
42 | 3) E-Prescribe
43 | 4) Print
44 | 5) Email
45 |
46 | Medical Billing:
47 | 1) Ether payment
48 |
49 | Patient Portal:
50 | 1) Modern User Interface
51 | 2) Scheduling and Appointments
52 | 3) Messaging
53 | 4) Ether Payment
54 | 5) New Patient Registration
55 | 6) Reports
56 | 7) Medical Problems
57 | 8) Medications
58 | 9) Allergies
59 | 10) Appointments
60 |
61 | Reports (Admin):
62 | 1) Appointments
63 | 2) Patient Lists
64 | 3) Prescriptions and Drug Dispensing
65 | 4) Pending Orders
66 |
--------------------------------------------------------------------------------
/bs-config.json:
--------------------------------------------------------------------------------
1 | {
2 | "server": {
3 | "baseDir": ["./src", "./build/contracts"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/contracts/EMRContract.sol:
--------------------------------------------------------------------------------
1 | pragma solidity ^0.4.23;
2 |
3 | contract EMRContract {
4 |
5 | enum SexType { MALE, FEMALE }
6 | enum MaritalType { single, married, remarried, separated, divorced, widowed }
7 | enum AppointmentStat { CREATED, APPROVED, REJECTED, BILLING, CLOSE }
8 |
9 | struct Patient {
10 | address client;
11 | string fullname;
12 | string dob;
13 | SexType sex;
14 | MaritalType marital;
15 | string email;
16 | uint256[] medicalreport;
17 | }
18 |
19 | struct Appointment{
20 | uint256 index;
21 | address patient;
22 | uint256 datetime;
23 | AppointmentStat stat;
24 | string remark;
25 | }
26 |
27 | struct MedicalReport{
28 | string docname;
29 | string docpath;
30 | string docdesp;
31 | bool isActive;
32 | uint256 index;
33 | }
34 |
35 | mapping(address => Patient) public patients;
36 |
37 | mapping(uint256 => Appointment) public appointments;
38 | mapping(address => bool) public administrator;
39 |
40 | mapping(uint256 => MedicalReport) public medicalreports;
41 |
42 | uint256 public AppointmentIndex;
43 | uint256 public MedicalReportIndex;
44 |
45 | address public owner;
46 |
47 |
48 | string public version = "0.0.1";
49 |
50 | event eAppointmentAdd(uint256 indexed index, address sender);
51 |
52 | event eAppointmentUpdate(uint256 indexed index, address sender);
53 |
54 |
55 | modifier isOwner() {
56 | if (msg.sender == owner) _;
57 | }
58 |
59 | modifier isAdministrator(address _admin) {
60 | if (administrator[_admin] == true) _;
61 | }
62 |
63 | constructor() public {
64 | owner = msg.sender;
65 | administrator[msg.sender] = true;
66 | }
67 |
68 | function UpdateVersion (string _version) public {
69 | version = _version;
70 | }
71 |
72 | function SetAdministrator (address _admin) public {
73 | require(msg.sender == owner);
74 | require(!administrator[_admin]);
75 |
76 | administrator[_admin] = true;
77 | }
78 |
79 | /*
80 | * Sign Up Patients
81 | */
82 |
83 | function SignupPatient(string _fullname,
84 | string _dob,
85 | SexType _sex,
86 | MaritalType _marital,
87 | string _email,
88 | uint256[] _medicalreport) public {
89 |
90 | require(msg.sender != patients[msg.sender].client);
91 |
92 | patients[msg.sender] = Patient(msg.sender,
93 | _fullname,
94 | _dob,
95 | _sex,
96 | _marital,
97 | _email,
98 | _medicalreport);
99 |
100 | }
101 |
102 |
103 | function PatientUpdate(string _fullname,
104 | string _dob,
105 | SexType _sex,
106 | MaritalType _marital,
107 | string _email) public {
108 |
109 | require(msg.sender == patients[msg.sender].client);
110 |
111 | patients[msg.sender].fullname = _fullname;
112 | patients[msg.sender].dob = _dob;
113 | patients[msg.sender].sex = _sex;
114 | patients[msg.sender].marital = _marital;
115 | patients[msg.sender].email = _email;
116 |
117 | }
118 |
119 |
120 | function AppointmentAdd(uint256 _datetime,
121 | AppointmentStat _stat, string _remark) public {
122 |
123 | require(msg.sender == patients[msg.sender].client);
124 | require(_datetime > now);
125 |
126 | AppointmentIndex++;
127 |
128 | appointments[AppointmentIndex] = Appointment(AppointmentIndex,
129 | msg.sender,
130 | _datetime,
131 | _stat,
132 | _remark);
133 |
134 | emit eAppointmentAdd(AppointmentIndex, msg.sender);
135 |
136 | }
137 |
138 | function AppointmentUpdate(uint256 _AppointmentIndex,
139 | AppointmentStat _stat,
140 | string _remark) public {
141 |
142 | require(administrator[msg.sender] == true || msg.sender == patients[msg.sender].client);
143 | require(_AppointmentIndex > 0);
144 | require(_AppointmentIndex <= AppointmentIndex);
145 |
146 | appointments[_AppointmentIndex].stat = _stat;
147 | appointments[_AppointmentIndex].remark = _remark;
148 |
149 | emit eAppointmentUpdate(_AppointmentIndex, msg.sender);
150 |
151 | }
152 |
153 | function AppointmentGet() public view returns (uint256[]){
154 | uint256[] memory results;
155 | uint256 count;
156 | for (uint256 i = 1; i <= AppointmentIndex; i++) {
157 | if(appointments[i].patient == msg.sender)
158 | {
159 | //results.push(appointments[i].index);
160 | results[count] = i;
161 | count++;
162 | }
163 | }
164 | return results;
165 | }
166 |
167 | function payment(address _receiver) public payable {
168 | _receiver.transfer(msg.value);
169 | }
170 |
171 | function MedicalReportAdd(string _docname,
172 | string _docpath,
173 | string _docdesp) public {
174 |
175 | require(msg.sender == patients[msg.sender].client, "Sender has to be a patient");
176 |
177 | MedicalReportIndex++;
178 | medicalreports[MedicalReportIndex] = MedicalReport(_docname,
179 | _docpath,
180 | _docdesp,
181 | true, MedicalReportIndex);
182 |
183 | patients[msg.sender].medicalreport.push(MedicalReportIndex);
184 |
185 | }
186 |
187 | function MedicalReportGet(address _addr) public view returns(uint256[]){
188 | return patients[_addr].medicalreport;
189 | }
190 |
191 |
192 |
193 | function kill() public {
194 | require(msg.sender == owner);
195 | selfdestruct(msg.sender);
196 | }
197 |
198 |
199 |
200 |
201 | }
202 |
--------------------------------------------------------------------------------
/contracts/Migrations.sol:
--------------------------------------------------------------------------------
1 | pragma solidity ^0.4.23;
2 |
3 | contract Migrations {
4 | address public owner;
5 | uint public last_completed_migration;
6 |
7 | constructor() public {
8 | owner = msg.sender;
9 | }
10 |
11 | modifier restricted() {
12 | if (msg.sender == owner) _;
13 | }
14 |
15 | function setCompleted(uint completed) public restricted {
16 | last_completed_migration = completed;
17 | }
18 |
19 | function upgrade(address new_address) public restricted {
20 | Migrations upgraded = Migrations(new_address);
21 | upgraded.setCompleted(last_completed_migration);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/docs/AdminProfileView.html:
--------------------------------------------------------------------------------
1 |
';
400 |
401 | navbar_form = $('nav').find('.navbar-form').get(0).outerHTML;
402 |
403 | $sidebar_nav = $sidebar_wrapper.find(' > .nav');
404 |
405 | // insert the navbar form before the sidebar list
406 | $nav_content = $(nav_content);
407 | $navbar_form = $(navbar_form);
408 | $nav_content.insertBefore($sidebar_nav);
409 | $navbar_form.insertBefore($nav_content);
410 |
411 | $(".sidebar-wrapper .dropdown .dropdown-menu > li > a").click(function(event) {
412 | event.stopPropagation();
413 |
414 | });
415 |
416 | // simulate resize so all the charts/maps will be redrawn
417 | window.dispatchEvent(new Event('resize'));
418 |
419 | mobile_menu_initialized = true;
420 | } else {
421 | if ($(window).width() > 991) {
422 | // reset all the additions that we made for the sidebar wrapper only if the screen is bigger than 991px
423 | $sidebar_wrapper.find('.navbar-form').remove();
424 | $sidebar_wrapper.find('.nav-mobile-menu').remove();
425 |
426 | mobile_menu_initialized = false;
427 | }
428 | }
429 | }, 200),
430 |
431 | startAnimationForLineChart: function(chart) {
432 |
433 | chart.on('draw', function(data) {
434 | if (data.type === 'line' || data.type === 'area') {
435 | data.element.animate({
436 | d: {
437 | begin: 600,
438 | dur: 700,
439 | from: data.path.clone().scale(1, 0).translate(0, data.chartRect.height()).stringify(),
440 | to: data.path.clone().stringify(),
441 | easing: Chartist.Svg.Easing.easeOutQuint
442 | }
443 | });
444 | } else if (data.type === 'point') {
445 | seq++;
446 | data.element.animate({
447 | opacity: {
448 | begin: seq * delays,
449 | dur: durations,
450 | from: 0,
451 | to: 1,
452 | easing: 'ease'
453 | }
454 | });
455 | }
456 | });
457 |
458 | seq = 0;
459 | },
460 | startAnimationForBarChart: function(chart) {
461 |
462 | chart.on('draw', function(data) {
463 | if (data.type === 'bar') {
464 | seq2++;
465 | data.element.animate({
466 | opacity: {
467 | begin: seq2 * delays2,
468 | dur: durations2,
469 | from: 0,
470 | to: 1,
471 | easing: 'ease'
472 | }
473 | });
474 | }
475 | });
476 |
477 | seq2 = 0;
478 | }
479 | }
480 |
481 | // Returns a function, that, as long as it continues to be invoked, will not
482 | // be triggered. The function will be called after it stops being called for
483 | // N milliseconds. If `immediate` is passed, trigger the function on the
484 | // leading edge, instead of the trailing.
485 |
486 | function debounce(func, wait, immediate) {
487 | var timeout;
488 | return function() {
489 | var context = this,
490 | args = arguments;
491 | clearTimeout(timeout);
492 | timeout = setTimeout(function() {
493 | timeout = null;
494 | if (!immediate) func.apply(context, args);
495 | }, wait);
496 | if (immediate && !timeout) func.apply(context, args);
497 | };
498 | };
--------------------------------------------------------------------------------
/docs/js-utils/material-dashboard.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["_site_dashboard_free/assets/js/dashboard-free.js"],"names":["isWindows","navigator","platform","indexOf","$","perfectScrollbar","addClass","breakCards","searchVisible","transparent","transparentDemo","fixedTop","mobile_menu_visible","mobile_menu_initialized","toggle_initialized","bootstrap_nav_initialized","seq","delays","durations","seq2","delays2","durations2","debounce","func","wait","immediate","timeout","context","this","args","arguments","clearTimeout","setTimeout","apply","document","ready","bootstrapMaterialDesign","$sidebar","md","initSidebarsCheck","window_width","window","width","checkSidebarImage","length","selectpicker","tooltip","on","parent","removeClass","hasClass","closest","$toggle","remove","$layer","find","appendTo","click","resize","initDashboardPageCharts","misc","navbar_menu_visible","active_collapse","disabled_collapse_init","image_src","data","undefined","sidebar_container","append","initFormExtendedDatetimepickers","datetimepicker","icons","time","date","up","down","previous","next","today","clear","close","format","initSliders","slider","getElementById","noUiSlider","create","start","connect","range","min","max","slider2","initRightMenu","dataDailySalesChart","labels","series","optionsDailySalesChart","lineSmooth","Chartist","Interpolation","cardinal","tension","low","high","chartPadding","top","right","bottom","left","dailySalesChart","Line","startAnimationForLineChart","dataCompletedTasksChart","optionsCompletedTasksChart","completedTasksChart","websiteViewsChart","Bar","axisX","showGrid","seriesBarDistance","labelInterpolationFnc","value","startAnimationForBarChart","initMinimizeSidebar","sidebar_mini_active","simulateWindowResize","setInterval","dispatchEvent","Event","clearInterval","checkScrollForTransparentNavbar","scrollTop","$sidebar_wrapper","$navbar","children","mobile_menu_content","nav_content","html","navbar_form","get","outerHTML","$sidebar_nav","$nav_content","$navbar_form","insertBefore","event","stopPropagation","chart","type","element","animate","d","begin","dur","from","path","clone","scale","translate","chartRect","height","stringify","to","easing","Svg","Easing","easeOutQuint","opacity"],"mappings":"AAkBIA,WAAiD,EAArCC,UAAUC,SAASC,QAAQ,OAEnCH,WAEDI,EAAE,0CAA0CC,mBAE5CD,EAAE,QAAQE,SAAS,yBAEnBF,EAAE,QAAQE,SAAS,yBAK1B,IAAIC,YAAa,EAEbC,cAAgB,EAChBC,aAAc,EAEdC,iBAAkB,EAClBC,UAAW,EAEXC,oBAAsB,EACtBC,yBAA0B,EAC1BC,oBAAqB,EACrBC,2BAA4B,EAE5BC,IAAM,EACNC,OAAS,GACTC,UAAY,IACZC,KAAO,EACPC,QAAU,GACVC,WAAa,IAobjB,SAASC,SAASC,EAAMC,EAAMC,GAC7B,IAAIC,EACJ,OAAO,WACN,IAAIC,EAAUC,KAAMC,EAAOC,UAC3BC,aAAaL,GACbA,EAAUM,WAAW,WACpBN,EAAU,KACLD,GAAWF,EAAKU,MAAMN,EAASE,IAClCL,GACCC,IAAcC,GAASH,EAAKU,MAAMN,EAASE,IA3bjDzB,EAAE8B,UAAUC,MAAM,WAEf/B,EAAE,QAAQgC,0BAETC,SAAWjC,EAAE,YAEbkC,GAAGC,oBAEHC,aAAepC,EAAEqC,QAAQC,QAGzBJ,GAAGK,oBAG8B,GAA7BvC,EAAE,iBAAiBwC,QACnBxC,EAAE,iBAAiByC,eAIvBzC,EAAE,mBAAmB0C,UAErB1C,EAAE,iBAAiB2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AKoF,OACZrI,MACAiD,EAAKqF,QAAQC,QAAQ,CACjBiB,QAAS,CACLf,MAAOzI,IAAMC,OACbyI,IAAKxI,UACLyI,KAAM,EACNQ,GAAI,EACJC,OAAQ,aAMxBpJ,IAAM,GAEV2G,0BAA2B,SAASyB,GAEhCA,EAAMrG,GAAG,OAAQ,SAASkB,GACJ,QAAdA,EAAKoF,OACLlI,OACA8C,EAAKqF,QAAQC,QAAQ,CACjBiB,QAAS,CACLf,MAAOtI,KAAOC,QACdsI,IAAKrI,WACLsI,KAAM,EACNQ,GAAI,EACJC,OAAQ,aAMxBjJ,KAAO"}
--------------------------------------------------------------------------------
/docs/js-utils/material-dashboard.min.js:
--------------------------------------------------------------------------------
1 | isWindows=-1');0!=$("body").find(".main-panel").length?e.appendTo(".main-panel"):$("body").hasClass("off-canvas-sidebar")&&e.appendTo(".wrapper-full-page"),setTimeout(function(){e.addClass("visible")},100),e.click(function(){$("html").removeClass("nav-open"),mobile_menu_visible=0,e.removeClass("visible"),setTimeout(function(){e.remove(),$toggle.removeClass("toggled")},400)}),$("html").addClass("nav-open"),mobile_menu_visible=1}}),$(window).resize(function(){md.initSidebarsCheck(),seq=seq2=0,setTimeout(function(){md.initDashboardPageCharts()},500)}),md={misc:{navbar_menu_visible:0,active_collapse:!0,disabled_collapse_init:0},checkSidebarImage:function(){$sidebar=$(".sidebar"),image_src=$sidebar.data("image"),void 0!==image_src&&(sidebar_container='',$sidebar.append(sidebar_container))},initFormExtendedDatetimepickers:function(){$(".datetimepicker").datetimepicker({icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-screenshot",clear:"fa fa-trash",close:"fa fa-remove"}}),$(".datepicker").datetimepicker({format:"MM/DD/YYYY",icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-screenshot",clear:"fa fa-trash",close:"fa fa-remove"}}),$(".timepicker").datetimepicker({format:"h:mm A",icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-screenshot",clear:"fa fa-trash",close:"fa fa-remove"}})},initSliders:function(){var e=document.getElementById("sliderRegular");noUiSlider.create(e,{start:40,connect:[!0,!1],range:{min:0,max:100}});var a=document.getElementById("sliderDouble");noUiSlider.create(a,{start:[20,60],connect:!0,range:{min:0,max:100}})},initSidebarsCheck:function(){$(window).width()<=991&&0!=$sidebar.length&&md.initRightMenu()},initDashboardPageCharts:function(){if(0!=$("#dailySalesChart").length||0!=$("#completedTasksChart").length||0!=$("#websiteViewsChart").length){dataDailySalesChart={labels:["M","T","W","T","F","S","S"],series:[[12,17,7,17,23,18,38]]},optionsDailySalesChart={lineSmooth:Chartist.Interpolation.cardinal({tension:0}),low:0,high:50,chartPadding:{top:0,right:0,bottom:0,left:0}};var e=new Chartist.Line("#dailySalesChart",dataDailySalesChart,optionsDailySalesChart);md.startAnimationForLineChart(e),dataCompletedTasksChart={labels:["12p","3p","6p","9p","12p","3a","6a","9a"],series:[[230,750,450,300,280,240,200,190]]},optionsCompletedTasksChart={lineSmooth:Chartist.Interpolation.cardinal({tension:0}),low:0,high:1e3,chartPadding:{top:0,right:0,bottom:0,left:0}};var a=new Chartist.Line("#completedTasksChart",dataCompletedTasksChart,optionsCompletedTasksChart);md.startAnimationForLineChart(a);var i=Chartist.Bar("#websiteViewsChart",{labels:["J","F","M","A","M","J","J","A","S","O","N","D"],series:[[542,443,320,780,553,453,326,434,568,610,756,895]]},{axisX:{showGrid:!1},low:0,high:1e3,chartPadding:{top:0,right:5,bottom:0,left:0}},[["screen and (max-width: 640px)",{seriesBarDistance:5,axisX:{labelInterpolationFnc:function(e){return e[0]}}}]]);md.startAnimationForBarChart(i)}},initMinimizeSidebar:function(){$("#minimizeSidebar").click(function(){$(this);1==md.misc.sidebar_mini_active?($("body").removeClass("sidebar-mini"),md.misc.sidebar_mini_active=!1):($("body").addClass("sidebar-mini"),md.misc.sidebar_mini_active=!0);var e=setInterval(function(){window.dispatchEvent(new Event("resize"))},180);setTimeout(function(){clearInterval(e)},1e3)})},checkScrollForTransparentNavbar:debounce(function(){260<$(document).scrollTop()?transparent&&(transparent=!1,$(".navbar-color-on-scroll").removeClass("navbar-transparent")):transparent||(transparent=!0,$(".navbar-color-on-scroll").addClass("navbar-transparent"))},17),initRightMenu:debounce(function(){$sidebar_wrapper=$(".sidebar-wrapper"),mobile_menu_initialized?991<$(window).width()&&($sidebar_wrapper.find(".navbar-form").remove(),$sidebar_wrapper.find(".nav-mobile-menu").remove(),mobile_menu_initialized=!1):($navbar=$("nav").find(".navbar-collapse").children(".navbar-nav"),mobile_menu_content="",nav_content=$navbar.html(),nav_content='
'+nav_content+"
",navbar_form=$("nav").find(".navbar-form").get(0).outerHTML,$sidebar_nav=$sidebar_wrapper.find(" > .nav"),$nav_content=$(nav_content),$navbar_form=$(navbar_form),$nav_content.insertBefore($sidebar_nav),$navbar_form.insertBefore($nav_content),$(".sidebar-wrapper .dropdown .dropdown-menu > li > a").click(function(e){e.stopPropagation()}),window.dispatchEvent(new Event("resize")),mobile_menu_initialized=!0)},200),startAnimationForLineChart:function(e){e.on("draw",function(e){"line"===e.type||"area"===e.type?e.element.animate({d:{begin:600,dur:700,from:e.path.clone().scale(1,0).translate(0,e.chartRect.height()).stringify(),to:e.path.clone().stringify(),easing:Chartist.Svg.Easing.easeOutQuint}}):"point"===e.type&&(seq++,e.element.animate({opacity:{begin:seq*delays,dur:durations,from:0,to:1,easing:"ease"}}))}),seq=0},startAnimationForBarChart:function(e){e.on("draw",function(e){"bar"===e.type&&(seq2++,e.element.animate({opacity:{begin:seq2*delays2,dur:durations2,from:0,to:1,easing:"ease"}}))}),seq2=0}};
2 | //# sourceMappingURL=_site_dashboard_free/assets/js/dashboard-free.js.map
--------------------------------------------------------------------------------
/docs/js-utils/plugins/bootstrap-notify.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 |
4 |
5 | Creative Tim Modifications
6 |
7 | Lines: 236 was changed from top: 5px to top: 50% and we added margin-top: -9px. In this way the close button will be aligned vertically
8 | Line:219 - modified when the icon is set, we add the class "alert-with-icon", so there will be enough space for the icon.
9 | Lines: 179/222 - class() was changed to html() so we can add the Material Design Icons
10 |
11 |
12 |
13 | */
14 |
15 |
16 | /*
17 | * Project: Bootstrap Notify = v3.1.5
18 | * Description: Turns standard Bootstrap alerts into "Growl-like" notifications.
19 | * Author: Mouse0270 aka Robert McIntosh
20 | * License: MIT License
21 | * Website: https://github.com/mouse0270/bootstrap-growl
22 | */
23 |
24 | /* global define:false, require: false, jQuery:false */
25 |
26 | (function(factory) {
27 | if (typeof define === 'function' && define.amd) {
28 | // AMD. Register as an anonymous module.
29 | define(['jquery'], factory);
30 | } else if (typeof exports === 'object') {
31 | // Node/CommonJS
32 | factory(require('jquery'));
33 | } else {
34 | // Browser globals
35 | factory(jQuery);
36 | }
37 | }(function($) {
38 | // Create the defaults once
39 | var defaults = {
40 | element: 'body',
41 | position: null,
42 | type: "info",
43 | allow_dismiss: true,
44 | allow_duplicates: true,
45 | newest_on_top: false,
46 | showProgressbar: false,
47 | placement: {
48 | from: "top",
49 | align: "right"
50 | },
51 | offset: 20,
52 | spacing: 10,
53 | z_index: 1031,
54 | delay: 5000,
55 | timer: 1000,
56 | url_target: '_blank',
57 | mouse_over: null,
58 | animate: {
59 | enter: 'animated fadeInDown',
60 | exit: 'animated fadeOutUp'
61 | },
62 | onShow: null,
63 | onShown: null,
64 | onClose: null,
65 | onClosed: null,
66 | icon_type: 'class',
67 | template: '
{1}{2}
'
68 | };
69 |
70 | String.format = function() {
71 | var str = arguments[0];
72 | for (var i = 1; i < arguments.length; i++) {
73 | str = str.replace(RegExp("\\{" + (i - 1) + "\\}", "gm"), arguments[i]);
74 | }
75 | return str;
76 | };
77 |
78 | function isDuplicateNotification(notification) {
79 | var isDupe = false;
80 |
81 | $('[data-notify="container"]').each(function(i, el) {
82 | var $el = $(el);
83 | var title = $el.find('[data-notify="title"]').text().trim();
84 | var message = $el.find('[data-notify="message"]').html().trim();
85 |
86 | // The input string might be different than the actual parsed HTML string!
87 | // ( vs for example)
88 | // So we have to force-parse this as HTML here!
89 | var isSameTitle = title === $("
" + notification.settings.content.title + "
").html().trim();
90 | var isSameMsg = message === $("
';
400 |
401 | navbar_form = $('nav').find('.navbar-form').get(0).outerHTML;
402 |
403 | $sidebar_nav = $sidebar_wrapper.find(' > .nav');
404 |
405 | // insert the navbar form before the sidebar list
406 | $nav_content = $(nav_content);
407 | $navbar_form = $(navbar_form);
408 | $nav_content.insertBefore($sidebar_nav);
409 | $navbar_form.insertBefore($nav_content);
410 |
411 | $(".sidebar-wrapper .dropdown .dropdown-menu > li > a").click(function(event) {
412 | event.stopPropagation();
413 |
414 | });
415 |
416 | // simulate resize so all the charts/maps will be redrawn
417 | window.dispatchEvent(new Event('resize'));
418 |
419 | mobile_menu_initialized = true;
420 | } else {
421 | if ($(window).width() > 991) {
422 | // reset all the additions that we made for the sidebar wrapper only if the screen is bigger than 991px
423 | $sidebar_wrapper.find('.navbar-form').remove();
424 | $sidebar_wrapper.find('.nav-mobile-menu').remove();
425 |
426 | mobile_menu_initialized = false;
427 | }
428 | }
429 | }, 200),
430 |
431 | startAnimationForLineChart: function(chart) {
432 |
433 | chart.on('draw', function(data) {
434 | if (data.type === 'line' || data.type === 'area') {
435 | data.element.animate({
436 | d: {
437 | begin: 600,
438 | dur: 700,
439 | from: data.path.clone().scale(1, 0).translate(0, data.chartRect.height()).stringify(),
440 | to: data.path.clone().stringify(),
441 | easing: Chartist.Svg.Easing.easeOutQuint
442 | }
443 | });
444 | } else if (data.type === 'point') {
445 | seq++;
446 | data.element.animate({
447 | opacity: {
448 | begin: seq * delays,
449 | dur: durations,
450 | from: 0,
451 | to: 1,
452 | easing: 'ease'
453 | }
454 | });
455 | }
456 | });
457 |
458 | seq = 0;
459 | },
460 | startAnimationForBarChart: function(chart) {
461 |
462 | chart.on('draw', function(data) {
463 | if (data.type === 'bar') {
464 | seq2++;
465 | data.element.animate({
466 | opacity: {
467 | begin: seq2 * delays2,
468 | dur: durations2,
469 | from: 0,
470 | to: 1,
471 | easing: 'ease'
472 | }
473 | });
474 | }
475 | });
476 |
477 | seq2 = 0;
478 | }
479 | }
480 |
481 | // Returns a function, that, as long as it continues to be invoked, will not
482 | // be triggered. The function will be called after it stops being called for
483 | // N milliseconds. If `immediate` is passed, trigger the function on the
484 | // leading edge, instead of the trailing.
485 |
486 | function debounce(func, wait, immediate) {
487 | var timeout;
488 | return function() {
489 | var context = this,
490 | args = arguments;
491 | clearTimeout(timeout);
492 | timeout = setTimeout(function() {
493 | timeout = null;
494 | if (!immediate) func.apply(context, args);
495 | }, wait);
496 | if (immediate && !timeout) func.apply(context, args);
497 | };
498 | };
--------------------------------------------------------------------------------
/src/js-utils/material-dashboard.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["_site_dashboard_free/assets/js/dashboard-free.js"],"names":["isWindows","navigator","platform","indexOf","$","perfectScrollbar","addClass","breakCards","searchVisible","transparent","transparentDemo","fixedTop","mobile_menu_visible","mobile_menu_initialized","toggle_initialized","bootstrap_nav_initialized","seq","delays","durations","seq2","delays2","durations2","debounce","func","wait","immediate","timeout","context","this","args","arguments","clearTimeout","setTimeout","apply","document","ready","bootstrapMaterialDesign","$sidebar","md","initSidebarsCheck","window_width","window","width","checkSidebarImage","length","selectpicker","tooltip","on","parent","removeClass","hasClass","closest","$toggle","remove","$layer","find","appendTo","click","resize","initDashboardPageCharts","misc","navbar_menu_visible","active_collapse","disabled_collapse_init","image_src","data","undefined","sidebar_container","append","initFormExtendedDatetimepickers","datetimepicker","icons","time","date","up","down","previous","next","today","clear","close","format","initSliders","slider","getElementById","noUiSlider","create","start","connect","range","min","max","slider2","initRightMenu","dataDailySalesChart","labels","series","optionsDailySalesChart","lineSmooth","Chartist","Interpolation","cardinal","tension","low","high","chartPadding","top","right","bottom","left","dailySalesChart","Line","startAnimationForLineChart","dataCompletedTasksChart","optionsCompletedTasksChart","completedTasksChart","websiteViewsChart","Bar","axisX","showGrid","seriesBarDistance","labelInterpolationFnc","value","startAnimationForBarChart","initMinimizeSidebar","sidebar_mini_active","simulateWindowResize","setInterval","dispatchEvent","Event","clearInterval","checkScrollForTransparentNavbar","scrollTop","$sidebar_wrapper","$navbar","children","mobile_menu_content","nav_content","html","navbar_form","get","outerHTML","$sidebar_nav","$nav_content","$navbar_form","insertBefore","event","stopPropagation","chart","type","element","animate","d","begin","dur","from","path","clone","scale","translate","chartRect","height","stringify","to","easing","Svg","Easing","easeOutQuint","opacity"],"mappings":"AAkBIA,WAAiD,EAArCC,UAAUC,SAASC,QAAQ,OAEnCH,WAEDI,EAAE,0CAA0CC,mBAE5CD,EAAE,QAAQE,SAAS,yBAEnBF,EAAE,QAAQE,SAAS,yBAK1B,IAAIC,YAAa,EAEbC,cAAgB,EAChBC,aAAc,EAEdC,iBAAkB,EAClBC,UAAW,EAEXC,oBAAsB,EACtBC,yBAA0B,EAC1BC,oBAAqB,EACrBC,2BAA4B,EAE5BC,IAAM,EACNC,OAAS,GACTC,UAAY,IACZC,KAAO,EACPC,QAAU,GACVC,WAAa,IAobjB,SAASC,SAASC,EAAMC,EAAMC,GAC7B,IAAIC,EACJ,OAAO,WACN,IAAIC,EAAUC,KAAMC,EAAOC,UAC3BC,aAAaL,GACbA,EAAUM,WAAW,WACpBN,EAAU,KACLD,GAAWF,EAAKU,MAAMN,EAASE,IAClCL,GACCC,IAAcC,GAASH,EAAKU,MAAMN,EAASE,IA3bjDzB,EAAE8B,UAAUC,MAAM,WAEf/B,EAAE,QAAQgC,0BAETC,SAAWjC,EAAE,YAEbkC,GAAGC,oBAEHC,aAAepC,EAAEqC,QAAQC,QAGzBJ,GAAGK,oBAG8B,GAA7BvC,EAAE,iBAAiBwC,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2F,KAAKC,QAAQK,YACtBE,OAAQjE,SAASkE,IAAIC,OAAOC,gBAGf,UAAdtG,EAAKoF,OACZrI,MACAiD,EAAKqF,QAAQC,QAAQ,CACjBiB,QAAS,CACLf,MAAOzI,IAAMC,OACbyI,IAAKxI,UACLyI,KAAM,EACNQ,GAAI,EACJC,OAAQ,aAMxBpJ,IAAM,GAEV2G,0BAA2B,SAASyB,GAEhCA,EAAMrG,GAAG,OAAQ,SAASkB,GACJ,QAAdA,EAAKoF,OACLlI,OACA8C,EAAKqF,QAAQC,QAAQ,CACjBiB,QAAS,CACLf,MAAOtI,KAAOC,QACdsI,IAAKrI,WACLsI,KAAM,EACNQ,GAAI,EACJC,OAAQ,aAMxBjJ,KAAO"}
--------------------------------------------------------------------------------
/src/js-utils/material-dashboard.min.js:
--------------------------------------------------------------------------------
1 | isWindows=-1');0!=$("body").find(".main-panel").length?e.appendTo(".main-panel"):$("body").hasClass("off-canvas-sidebar")&&e.appendTo(".wrapper-full-page"),setTimeout(function(){e.addClass("visible")},100),e.click(function(){$("html").removeClass("nav-open"),mobile_menu_visible=0,e.removeClass("visible"),setTimeout(function(){e.remove(),$toggle.removeClass("toggled")},400)}),$("html").addClass("nav-open"),mobile_menu_visible=1}}),$(window).resize(function(){md.initSidebarsCheck(),seq=seq2=0,setTimeout(function(){md.initDashboardPageCharts()},500)}),md={misc:{navbar_menu_visible:0,active_collapse:!0,disabled_collapse_init:0},checkSidebarImage:function(){$sidebar=$(".sidebar"),image_src=$sidebar.data("image"),void 0!==image_src&&(sidebar_container='',$sidebar.append(sidebar_container))},initFormExtendedDatetimepickers:function(){$(".datetimepicker").datetimepicker({icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-screenshot",clear:"fa fa-trash",close:"fa fa-remove"}}),$(".datepicker").datetimepicker({format:"MM/DD/YYYY",icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-screenshot",clear:"fa fa-trash",close:"fa fa-remove"}}),$(".timepicker").datetimepicker({format:"h:mm A",icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-screenshot",clear:"fa fa-trash",close:"fa fa-remove"}})},initSliders:function(){var e=document.getElementById("sliderRegular");noUiSlider.create(e,{start:40,connect:[!0,!1],range:{min:0,max:100}});var a=document.getElementById("sliderDouble");noUiSlider.create(a,{start:[20,60],connect:!0,range:{min:0,max:100}})},initSidebarsCheck:function(){$(window).width()<=991&&0!=$sidebar.length&&md.initRightMenu()},initDashboardPageCharts:function(){if(0!=$("#dailySalesChart").length||0!=$("#completedTasksChart").length||0!=$("#websiteViewsChart").length){dataDailySalesChart={labels:["M","T","W","T","F","S","S"],series:[[12,17,7,17,23,18,38]]},optionsDailySalesChart={lineSmooth:Chartist.Interpolation.cardinal({tension:0}),low:0,high:50,chartPadding:{top:0,right:0,bottom:0,left:0}};var e=new Chartist.Line("#dailySalesChart",dataDailySalesChart,optionsDailySalesChart);md.startAnimationForLineChart(e),dataCompletedTasksChart={labels:["12p","3p","6p","9p","12p","3a","6a","9a"],series:[[230,750,450,300,280,240,200,190]]},optionsCompletedTasksChart={lineSmooth:Chartist.Interpolation.cardinal({tension:0}),low:0,high:1e3,chartPadding:{top:0,right:0,bottom:0,left:0}};var a=new Chartist.Line("#completedTasksChart",dataCompletedTasksChart,optionsCompletedTasksChart);md.startAnimationForLineChart(a);var i=Chartist.Bar("#websiteViewsChart",{labels:["J","F","M","A","M","J","J","A","S","O","N","D"],series:[[542,443,320,780,553,453,326,434,568,610,756,895]]},{axisX:{showGrid:!1},low:0,high:1e3,chartPadding:{top:0,right:5,bottom:0,left:0}},[["screen and (max-width: 640px)",{seriesBarDistance:5,axisX:{labelInterpolationFnc:function(e){return e[0]}}}]]);md.startAnimationForBarChart(i)}},initMinimizeSidebar:function(){$("#minimizeSidebar").click(function(){$(this);1==md.misc.sidebar_mini_active?($("body").removeClass("sidebar-mini"),md.misc.sidebar_mini_active=!1):($("body").addClass("sidebar-mini"),md.misc.sidebar_mini_active=!0);var e=setInterval(function(){window.dispatchEvent(new Event("resize"))},180);setTimeout(function(){clearInterval(e)},1e3)})},checkScrollForTransparentNavbar:debounce(function(){260<$(document).scrollTop()?transparent&&(transparent=!1,$(".navbar-color-on-scroll").removeClass("navbar-transparent")):transparent||(transparent=!0,$(".navbar-color-on-scroll").addClass("navbar-transparent"))},17),initRightMenu:debounce(function(){$sidebar_wrapper=$(".sidebar-wrapper"),mobile_menu_initialized?991<$(window).width()&&($sidebar_wrapper.find(".navbar-form").remove(),$sidebar_wrapper.find(".nav-mobile-menu").remove(),mobile_menu_initialized=!1):($navbar=$("nav").find(".navbar-collapse").children(".navbar-nav"),mobile_menu_content="",nav_content=$navbar.html(),nav_content='
'+nav_content+"
",navbar_form=$("nav").find(".navbar-form").get(0).outerHTML,$sidebar_nav=$sidebar_wrapper.find(" > .nav"),$nav_content=$(nav_content),$navbar_form=$(navbar_form),$nav_content.insertBefore($sidebar_nav),$navbar_form.insertBefore($nav_content),$(".sidebar-wrapper .dropdown .dropdown-menu > li > a").click(function(e){e.stopPropagation()}),window.dispatchEvent(new Event("resize")),mobile_menu_initialized=!0)},200),startAnimationForLineChart:function(e){e.on("draw",function(e){"line"===e.type||"area"===e.type?e.element.animate({d:{begin:600,dur:700,from:e.path.clone().scale(1,0).translate(0,e.chartRect.height()).stringify(),to:e.path.clone().stringify(),easing:Chartist.Svg.Easing.easeOutQuint}}):"point"===e.type&&(seq++,e.element.animate({opacity:{begin:seq*delays,dur:durations,from:0,to:1,easing:"ease"}}))}),seq=0},startAnimationForBarChart:function(e){e.on("draw",function(e){"bar"===e.type&&(seq2++,e.element.animate({opacity:{begin:seq2*delays2,dur:durations2,from:0,to:1,easing:"ease"}}))}),seq2=0}};
2 | //# sourceMappingURL=_site_dashboard_free/assets/js/dashboard-free.js.map
--------------------------------------------------------------------------------
/src/js-utils/plugins/bootstrap-notify.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 |
4 |
5 | Creative Tim Modifications
6 |
7 | Lines: 236 was changed from top: 5px to top: 50% and we added margin-top: -9px. In this way the close button will be aligned vertically
8 | Line:219 - modified when the icon is set, we add the class "alert-with-icon", so there will be enough space for the icon.
9 | Lines: 179/222 - class() was changed to html() so we can add the Material Design Icons
10 |
11 |
12 |
13 | */
14 |
15 |
16 | /*
17 | * Project: Bootstrap Notify = v3.1.5
18 | * Description: Turns standard Bootstrap alerts into "Growl-like" notifications.
19 | * Author: Mouse0270 aka Robert McIntosh
20 | * License: MIT License
21 | * Website: https://github.com/mouse0270/bootstrap-growl
22 | */
23 |
24 | /* global define:false, require: false, jQuery:false */
25 |
26 | (function(factory) {
27 | if (typeof define === 'function' && define.amd) {
28 | // AMD. Register as an anonymous module.
29 | define(['jquery'], factory);
30 | } else if (typeof exports === 'object') {
31 | // Node/CommonJS
32 | factory(require('jquery'));
33 | } else {
34 | // Browser globals
35 | factory(jQuery);
36 | }
37 | }(function($) {
38 | // Create the defaults once
39 | var defaults = {
40 | element: 'body',
41 | position: null,
42 | type: "info",
43 | allow_dismiss: true,
44 | allow_duplicates: true,
45 | newest_on_top: false,
46 | showProgressbar: false,
47 | placement: {
48 | from: "top",
49 | align: "right"
50 | },
51 | offset: 20,
52 | spacing: 10,
53 | z_index: 1031,
54 | delay: 5000,
55 | timer: 1000,
56 | url_target: '_blank',
57 | mouse_over: null,
58 | animate: {
59 | enter: 'animated fadeInDown',
60 | exit: 'animated fadeOutUp'
61 | },
62 | onShow: null,
63 | onShown: null,
64 | onClose: null,
65 | onClosed: null,
66 | icon_type: 'class',
67 | template: '
{1}{2}
'
68 | };
69 |
70 | String.format = function() {
71 | var str = arguments[0];
72 | for (var i = 1; i < arguments.length; i++) {
73 | str = str.replace(RegExp("\\{" + (i - 1) + "\\}", "gm"), arguments[i]);
74 | }
75 | return str;
76 | };
77 |
78 | function isDuplicateNotification(notification) {
79 | var isDupe = false;
80 |
81 | $('[data-notify="container"]').each(function(i, el) {
82 | var $el = $(el);
83 | var title = $el.find('[data-notify="title"]').text().trim();
84 | var message = $el.find('[data-notify="message"]').html().trim();
85 |
86 | // The input string might be different than the actual parsed HTML string!
87 | // ( vs for example)
88 | // So we have to force-parse this as HTML here!
89 | var isSameTitle = title === $("
" + notification.settings.content.title + "
").html().trim();
90 | var isSameMsg = message === $("