Browse Source

Remove old app data, rename project, update logo

tags/v2.0
Skylar Ittner 5 months ago
parent
commit
f48ab5e6b9
41 changed files with 2 additions and 6754 deletions
  1. BIN
      logo_512.png
  2. 1
    1
      nbproject/project.properties
  3. 1
    1
      nbproject/project.xml
  4. 0
    9
      www/old/css/app.css
  5. 0
    11
      www/old/css/bootstrap.min.css
  6. 0
    4
      www/old/css/font-awesome.min.css
  7. 0
    14
      www/old/css/inject_mini.css
  8. 0
    1951
      www/old/css/material-color.css
  9. 0
    2
      www/old/css/material-color.min.css
  10. 0
    29
      www/old/css/roboto-font.css
  11. 0
    76
      www/old/css/sidemenu-bs3.css
  12. 0
    48
      www/old/css/sidemenu-bs4.css
  13. 0
    75
      www/old/css/sidemenu.css
  14. BIN
      www/old/fonts/Roboto-Bold.ttf
  15. BIN
      www/old/fonts/Roboto-Light.ttf
  16. BIN
      www/old/fonts/Roboto-Medium.ttf
  17. BIN
      www/old/fonts/Roboto-Regular.ttf
  18. BIN
      www/old/fonts/fontawesome-webfont.ttf
  19. 0
    4
      www/old/icons/ic_add.svg
  20. 0
    57
      www/old/icons/ic_arrow-back.svg
  21. 0
    4
      www/old/icons/ic_desktop_windows.svg
  22. 0
    4
      www/old/icons/ic_lock.svg
  23. 0
    56
      www/old/icons/ic_settings.svg
  24. 0
    4
      www/old/icons/ic_vpn_key.svg
  25. 0
    108
      www/old/img/app-icon-bg.svg
  26. 0
    42
      www/old/img/error.svg
  27. BIN
      www/old/img/loader.gif
  28. BIN
      www/old/img/logo.png
  29. 0
    78
      www/old/img/logo.svg
  30. 0
    70
      www/old/img/noaccounts.svg
  31. 0
    70
      www/old/img/nokeys.svg
  32. 0
    7
      www/old/js/hammer.min.js
  33. 0
    6
      www/old/js/jquery-ui.min.js
  34. 0
    6
      www/old/js/jsOTP.min.js
  35. 0
    320
      www/old/js/material-palette.js
  36. 0
    61
      www/old/pages/accounts.html
  37. 0
    3337
      www/old/pages/credits.html
  38. 0
    19
      www/old/pages/homeloaderror.html
  39. 0
    36
      www/old/pages/mobilecode.html
  40. 0
    156
      www/old/pages/settings.html
  41. 0
    88
      www/old/pages/zeroconf.html

BIN
logo_512.png View File


+ 1
- 1
nbproject/project.properties View File

@@ -3,6 +3,6 @@ auxiliary.org-netbeans-modules-cordova.phonegap=false
3 3
 file.reference.BusinessMobile-test=test
4 4
 file.reference.BusinessMobile-www=www
5 5
 files.encoding=UTF-8
6
-project.licensePath=./nbproject/mplheader.txt
6
+project.licensePath=nbproject/mplheader.txt
7 7
 site.root.folder=${file.reference.BusinessMobile-www}
8 8
 test.folder=${file.reference.BusinessMobile-test}

+ 1
- 1
nbproject/project.xml View File

@@ -3,7 +3,7 @@
3 3
     <type>org.netbeans.modules.web.clientproject</type>
4 4
     <configuration>
5 5
         <data xmlns="http://www.netbeans.org/ns/clientside-project/1">
6
-            <name>BusinessMobile</name>
6
+            <name>NetsymsMobile</name>
7 7
         </data>
8 8
     </configuration>
9 9
 </project>

+ 0
- 9
www/old/css/app.css View File

@@ -1,9 +0,0 @@
1
-/* This Source Code Form is subject to the terms of the Mozilla Public
2
- * License, v. 2.0. If a copy of the MPL was not distributed with this
3
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
-
5
-
6
-.app-icon {
7
-    border: 1px solid grey;
8
-    border-radius: 20%;
9
-}

+ 0
- 11
www/old/css/bootstrap.min.css
File diff suppressed because it is too large
View File


+ 0
- 4
www/old/css/font-awesome.min.css
File diff suppressed because it is too large
View File


+ 0
- 14
www/old/css/inject_mini.css View File

@@ -1,14 +0,0 @@
1
-/* This Source Code Form is subject to the terms of the Mozilla Public
2
- * License, v. 2.0. If a copy of the MPL was not distributed with this
3
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
-
5
-/*
6
- A tiny bit of CSS to inject into apps even if injectcode = false.
7
-
8
- This hides items in the app with the class mobile-app-hide.
9
-*/
10
-
11
-.mobile-app-hide {
12
-    display: none;
13
-    visibility: hidden;
14
-}

+ 0
- 1951
www/old/css/material-color.css
File diff suppressed because it is too large
View File


+ 0
- 2
www/old/css/material-color.min.css
File diff suppressed because it is too large
View File


+ 0
- 29
www/old/css/roboto-font.css View File

@@ -1,29 +0,0 @@
1
-/*
2
- Roboto font family
3
- Downloaded from Google Web Fonts
4
- Apache 2.0 License
5
-*/
6
-@font-face {
7
-    font-family: 'Roboto';
8
-    font-style: normal;
9
-    font-weight: 300;
10
-    src: local('Roboto Light'), local('Roboto-Light'), url(../fonts/Roboto-Light.ttf) format('truetype');
11
-}
12
-@font-face {
13
-    font-family: 'Roboto';
14
-    font-style: normal;
15
-    font-weight: 400;
16
-    src: local('Roboto'), local('Roboto-Regular'), url(../fonts/Roboto-Regular.ttf) format('truetype');
17
-}
18
-@font-face {
19
-    font-family: 'Roboto';
20
-    font-style: normal;
21
-    font-weight: 500;
22
-    src: local('Roboto Medium'), local('Roboto-Medium'), url(../fonts/Roboto-Medium.ttf) format('truetype');
23
-}
24
-@font-face {
25
-    font-family: 'Roboto';
26
-    font-style: normal;
27
-    font-weight: 700;
28
-    src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/Roboto-Bold.ttf) format('truetype');
29
-}

+ 0
- 76
www/old/css/sidemenu-bs3.css View File

@@ -1,76 +0,0 @@
1
-/*
2
-This Source Code Form is subject to the terms of the Mozilla Public
3
-License, v. 2.0. If a copy of the MPL was not distributed with this
4
-file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
-*/
6
-@media screen and (max-width: 767px) {
7
-    .navbar, .navbar-brand {
8
-        min-height: 56px;
9
-        height: 56px;
10
-    }
11
-
12
-    .navbar-brand {
13
-        font-size: 20px;
14
-        margin-top: -4px;
15
-    }
16
-
17
-    .navbar-toggle {
18
-        border: 0px solid white;
19
-        margin-top: 11px;
20
-        margin-bottom: 11px;
21
-    }
22
-
23
-    #navbar-collapse {
24
-        display: none;
25
-    }
26
-
27
-    button.navbar-toggle[data-toggle="collapse"] {
28
-        float: left;
29
-        margin-left: 15px;
30
-    }
31
-
32
-    .navbar-header .navbar-brand {
33
-        margin-left: -20px;
34
-    }
35
-
36
-    .navbar-header .navbar-brand img {
37
-        display: none;
38
-    }
39
-}
40
-
41
-#swipe-nav ul {
42
-    margin-bottom: 10px;
43
-    padding-left: 2px;
44
-    list-style-type: none;
45
-    padding: 3px;
46
-}
47
-
48
-#swipe-nav ul li {
49
-    color: #424242;
50
-    padding-top: 5px;
51
-    padding-bottom: 5px;
52
-}
53
-
54
-#swipe-nav ul li a:focus,a:active {
55
-    background-color: #e0e0e0;
56
-}
57
-
58
-#swipe-nav ul li i.fa {
59
-    font-size: 120%;
60
-    margin-right: 10px;
61
-    margin-left: 5px;
62
-}
63
-
64
-#swipe-nav ul li a {
65
-    display: inline-block;
66
-    color: #424242;
67
-    font-size: 110%;
68
-    text-decoration: none;
69
-    width: 100%;
70
-    padding-top: 10px;
71
-    padding-bottom: 10px;
72
-}
73
-
74
-#swipe-nav ul li a:hover {
75
-    text-decoration: none;
76
-}

+ 0
- 48
www/old/css/sidemenu-bs4.css View File

@@ -1,48 +0,0 @@
1
-/*
2
-This Source Code Form is subject to the terms of the Mozilla Public
3
-License, v. 2.0. If a copy of the MPL was not distributed with this
4
-file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
-*/
6
-@media screen and (max-width: 767px) {
7
-    #navbar-collapse {
8
-        display: none;
9
-    }
10
-}
11
-
12
-#swipe-nav .swipe-list {
13
-    margin-top: 5px;
14
-    margin-bottom: 10px;
15
-    padding-left: 0px;
16
-    list-style-type: none;
17
-    padding: 3px;
18
-}
19
-
20
-#swipe-nav .swipe-list .nav-item {
21
-    color: #424242;
22
-    padding-top: 5px;
23
-    padding-bottom: 5px;
24
-}
25
-
26
-#swipe-nav .swipe-list .nav-item a:focus,a:active {
27
-    background-color: #e0e0e0;
28
-}
29
-
30
-#swipe-nav .swipe-list .nav-item i.fa {
31
-    font-size: 120%;
32
-    margin-right: 10px;
33
-    margin-left: 5px;
34
-}
35
-
36
-#swipe-nav .swipe-list .nav-item a {
37
-    display: inline-block;
38
-    color: #424242;
39
-    font-size: 110%;
40
-    text-decoration: none;
41
-    width: 100%;
42
-    padding-top: 15px;
43
-    padding-bottom: 15px;
44
-}
45
-
46
-#swipe-nav .swipe-list .nav-item a:hover {
47
-    text-decoration: none;
48
-}

+ 0
- 75
www/old/css/sidemenu.css View File

@@ -1,75 +0,0 @@
1
-/* This Source Code Form is subject to the terms of the Mozilla Public
2
- * License, v. 2.0. If a copy of the MPL was not distributed with this
3
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
-
5
-.mobile-app-hide {
6
-    display: none;
7
-    visibility: hidden;
8
-}
9
-
10
-.mobile-app-show {
11
-    visibility: visible;
12
-}
13
-
14
-.mobile-app-display {
15
-    display: initial;
16
-}
17
-
18
-#swipe-nav {
19
-    display: none;
20
-    visibility: visible;
21
-    overflow-y: scroll;
22
-    position: fixed;
23
-    top: 0;
24
-    left: 0;
25
-    bottom: 0;
26
-    width: 60%;
27
-    z-index: 9999999;
28
-    max-width: 300px;
29
-    min-width: 200px;
30
-    background-color: #fafafa;
31
-    box-shadow: 5px 0px 15px 0px rgba(0,0,0,0.5);
32
-}
33
-
34
-#swipe-nav #swipe-header {
35
-    height: 150px;
36
-    background-color: #eeeeee;
37
-    position: relative;
38
-}
39
-
40
-#swipe-nav #swipe-header #swipe-username {
41
-    position: absolute;
42
-    bottom: 0;
43
-    padding-left: 10px;
44
-    padding-bottom: 10px;
45
-    font-size: 110%;
46
-}
47
-
48
-#swipe-nav #swipe-header #swipe-appicon {
49
-    position: absolute;
50
-    top: 0;
51
-    padding-left: 20px;
52
-    padding-top: 20px;
53
-    height: 80px;
54
-}
55
-
56
-#swipe-nav #swipe-header #swipe-username .fa {
57
-    font-size: 120%;
58
-}
59
-
60
-#swipe-nav #swipe-pages {
61
-    padding-bottom: 10px;
62
-    border-bottom: 1px solid #eeeeee;
63
-}
64
-
65
-#swipe-shader {
66
-    position: fixed;
67
-    display: none;
68
-    visibility: visible;
69
-    top: 0;
70
-    right: 0;
71
-    bottom: 0;
72
-    left: 0;
73
-    background-color: rgba(0,0,0,0.5);
74
-    z-index: 9999998;
75
-}

BIN
www/old/fonts/Roboto-Bold.ttf View File


BIN
www/old/fonts/Roboto-Light.ttf View File


BIN
www/old/fonts/Roboto-Medium.ttf View File


BIN
www/old/fonts/Roboto-Regular.ttf View File


BIN
www/old/fonts/fontawesome-webfont.ttf View File


+ 0
- 4
www/old/icons/ic_add.svg View File

@@ -1,4 +0,0 @@
1
-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
2
-    <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
3
-    <path d="M0 0h24v24H0z" fill="none"/>
4
-</svg>

+ 0
- 57
www/old/icons/ic_arrow-back.svg View File

@@ -1,57 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<svg
3
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
-   xmlns:cc="http://creativecommons.org/ns#"
5
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
-   xmlns:svg="http://www.w3.org/2000/svg"
7
-   xmlns="http://www.w3.org/2000/svg"
8
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
-   fill="#000000"
11
-   height="24"
12
-   viewBox="0 0 24 24"
13
-   width="24"
14
-   id="svg2"
15
-   version="1.1"
16
-   inkscape:version="0.91 r13725"
17
-   sodipodi:docname="ic_arrow-back.svg">
18
-  <metadata
19
-     id="metadata12">
20
-    <rdf:RDF>
21
-      <cc:Work
22
-         rdf:about="">
23
-        <dc:format>image/svg+xml</dc:format>
24
-        <dc:type
25
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
26
-        <dc:title></dc:title>
27
-      </cc:Work>
28
-    </rdf:RDF>
29
-  </metadata>
30
-  <defs
31
-     id="defs10" />
32
-  <sodipodi:namedview
33
-     pagecolor="#ffffff"
34
-     bordercolor="#666666"
35
-     borderopacity="1"
36
-     objecttolerance="10"
37
-     gridtolerance="10"
38
-     guidetolerance="10"
39
-     inkscape:pageopacity="0"
40
-     inkscape:pageshadow="2"
41
-     inkscape:window-width="640"
42
-     inkscape:window-height="480"
43
-     id="namedview8"
44
-     showgrid="false"
45
-     inkscape:zoom="10.125"
46
-     inkscape:cx="-6.0246914"
47
-     inkscape:cy="11.802469"
48
-     inkscape:current-layer="svg2" />
49
-  <path
50
-     d="M0 0h24v24H0z"
51
-     fill="none"
52
-     id="path4" />
53
-  <path
54
-     d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
55
-     id="path6"
56
-     style="fill:#ffffff;fill-opacity:1" />
57
-</svg>

+ 0
- 4
www/old/icons/ic_desktop_windows.svg View File

@@ -1,4 +0,0 @@
1
-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
2
-    <path d="M0 0h24v24H0z" fill="none"/>
3
-    <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/>
4
-</svg>

+ 0
- 4
www/old/icons/ic_lock.svg View File

@@ -1,4 +0,0 @@
1
-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
2
-    <path d="M0 0h24v24H0z" fill="none"/>
3
-    <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/>
4
-</svg>

+ 0
- 56
www/old/icons/ic_settings.svg View File

@@ -1,56 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<svg
3
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
-   xmlns:cc="http://creativecommons.org/ns#"
5
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
-   xmlns:svg="http://www.w3.org/2000/svg"
7
-   xmlns="http://www.w3.org/2000/svg"
8
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
-   fill="#000000"
11
-   height="24"
12
-   viewBox="0 0 24 24"
13
-   width="24"
14
-   id="svg3421"
15
-   version="1.1"
16
-   inkscape:version="0.91 r13725"
17
-   sodipodi:docname="ic_settings.svg">
18
-  <metadata
19
-     id="metadata3431">
20
-    <rdf:RDF>
21
-      <cc:Work
22
-         rdf:about="">
23
-        <dc:format>image/svg+xml</dc:format>
24
-        <dc:type
25
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
26
-      </cc:Work>
27
-    </rdf:RDF>
28
-  </metadata>
29
-  <defs
30
-     id="defs3429" />
31
-  <sodipodi:namedview
32
-     pagecolor="#ffffff"
33
-     bordercolor="#666666"
34
-     borderopacity="1"
35
-     objecttolerance="10"
36
-     gridtolerance="10"
37
-     guidetolerance="10"
38
-     inkscape:pageopacity="0"
39
-     inkscape:pageshadow="2"
40
-     inkscape:window-width="640"
41
-     inkscape:window-height="480"
42
-     id="namedview3427"
43
-     showgrid="false"
44
-     inkscape:zoom="33.083333"
45
-     inkscape:cx="11.969773"
46
-     inkscape:cy="12"
47
-     inkscape:current-layer="svg3421" />
48
-  <path
49
-     d="M0 0h24v24H0z"
50
-     fill="none"
51
-     id="path3423" />
52
-  <path
53
-     d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"
54
-     id="path3425"
55
-     style="fill:#ffffff;fill-opacity:1;stroke:none" />
56
-</svg>

+ 0
- 4
www/old/icons/ic_vpn_key.svg View File

@@ -1,4 +0,0 @@
1
-<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
2
-    <path d="M0 0h24v24H0z" fill="none"/>
3
-    <path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
4
-</svg>

+ 0
- 108
www/old/img/app-icon-bg.svg View File

@@ -1,108 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<svg
3
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
-   xmlns:cc="http://creativecommons.org/ns#"
5
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
-   xmlns:svg="http://www.w3.org/2000/svg"
7
-   xmlns="http://www.w3.org/2000/svg"
8
-   width="512"
9
-   height="512"
10
-   viewBox="0 0 512.00001 512.00001"
11
-   id="svg2"
12
-   version="1.1">
13
-  <defs
14
-     id="defs4">
15
-    <pattern
16
-       height="8.15625"
17
-       patternTransform="translate(201.25 133.47)"
18
-       patternUnits="userSpaceOnUse"
19
-       width="8.6875"
20
-       id="pattern6179">
21
-      <path
22
-         d="m1.9375 0.5c-0.8781 0.7454-1.4375 1.8526-1.4375 3.0938 0 2.2424 1.82 4.0624 4.0625 4.0624 1.5819 0 2.9541-0.9292 3.625-2.25-0.7084 0.6014-1.6237 1-2.625 1-2.2425 0-4.0625-1.82-4.0625-4.0624 0-0.6607 0.1573-1.2922 0.4375-1.8438z"
23
-         style="opacity:.32394;stroke-opacity:0;fill:#eeeeec"
24
-         id="path6174" />
25
-    </pattern>
26
-  </defs>
27
-  <metadata
28
-     id="metadata7">
29
-    <rdf:RDF>
30
-      <cc:Work
31
-         rdf:about="">
32
-        <dc:format>image/svg+xml</dc:format>
33
-        <dc:type
34
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
35
-        <dc:title></dc:title>
36
-      </cc:Work>
37
-    </rdf:RDF>
38
-  </metadata>
39
-  <g
40
-     id="layer1"
41
-     transform="translate(0,-540.36216)">
42
-    <rect
43
-       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
44
-       id="rect4726"
45
-       width="512"
46
-       height="512"
47
-       x="0"
48
-       y="540.36218"
49
-       rx="50"
50
-       ry="50" />
51
-    <g
52
-       transform="translate(0,-2.2617187e-5)"
53
-       id="layer1-9">
54
-      <g
55
-         transform="translate(0.61384869,9.1476514)"
56
-         id="g4610">
57
-        <g
58
-           style="fill:#dcdcdc;fill-opacity:1"
59
-           id="g4528">
60
-          <rect
61
-             y="726.60608"
62
-             x="145.6884"
63
-             height="296.34189"
64
-             width="100.27342"
65
-             id="rect4194-3"
66
-             style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
67
-             rx="15"
68
-             ry="15" />
69
-          <rect
70
-             y="797.948"
71
-             x="263.57608"
72
-             height="225"
73
-             width="100.27342"
74
-             id="rect4194-6"
75
-             style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
76
-             rx="15"
77
-             ry="15" />
78
-          <rect
79
-             y="858.0174"
80
-             x="30.26951"
81
-             height="164.93059"
82
-             width="100.27342"
83
-             id="rect4194-6-7"
84
-             style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
85
-             rx="15"
86
-             ry="15" />
87
-          <rect
88
-             y="551.48108"
89
-             x="380.22937"
90
-             height="471.46692"
91
-             width="100.27342"
92
-             id="rect4194"
93
-             style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
94
-             rx="15"
95
-             ry="15" />
96
-        </g>
97
-        <g
98
-           id="g4568">
99
-          <path
100
-             style="fill:#bce0fc;fill-opacity:1;stroke:#ffffff;stroke-width:7;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
101
-             d="m 195.89258,55.101562 a 24.748737,24.748737 0 0 0 -24.81641,24.681641 24.748737,24.748737 0 0 0 3.02344,11.867188 L 76.679688,335.07617 a 24.748737,24.748737 0 0 0 -21.021485,24.38281 24.748737,24.748737 0 0 0 24.679688,24.81641 24.748737,24.748737 0 0 0 24.816409,-24.68164 24.748737,24.748737 0 0 0 -5.242191,-15.28711 l 94.437501,-235.9707 100.24609,303.2539 a 24.748737,24.748737 0 0 0 -5.63086,15.625 24.748737,24.748737 0 0 0 24.67969,24.81641 24.748737,24.748737 0 0 0 24.81641,-24.67969 24.748737,24.748737 0 0 0 -7.86328,-18.11914 L 432.16602,180.64453 a 24.748737,24.748737 0 0 0 22.94921,-24.60937 24.748737,24.748737 0 0 0 -24.68164,-24.81641 24.748737,24.748737 0 0 0 -24.8164,24.67969 24.748737,24.748737 0 0 0 4.10547,13.68945 L 312.93359,387.41602 215.99609,94.166016 a 24.748737,24.748737 0 0 0 4.57813,-14.248047 24.748737,24.748737 0 0 0 -24.68164,-24.816407 z"
102
-             transform="translate(0,540.36219)"
103
-             id="circle4572" />
104
-        </g>
105
-      </g>
106
-    </g>
107
-  </g>
108
-</svg>

+ 0
- 42
www/old/img/error.svg View File

@@ -1,42 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<svg
3
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
-   xmlns:cc="http://creativecommons.org/ns#"
5
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
-   xmlns:svg="http://www.w3.org/2000/svg"
7
-   xmlns="http://www.w3.org/2000/svg"
8
-   version="1.1"
9
-   id="svg2"
10
-   viewBox="0 0 403.11311 352.57208"
11
-   height="352.57208"
12
-   width="403.11313">
13
-  <defs
14
-     id="defs4" />
15
-  <metadata
16
-     id="metadata7">
17
-    <rdf:RDF>
18
-      <cc:Work
19
-         rdf:about="">
20
-        <dc:format>image/svg+xml</dc:format>
21
-        <dc:type
22
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
23
-        <dc:title></dc:title>
24
-      </cc:Work>
25
-    </rdf:RDF>
26
-  </metadata>
27
-  <g
28
-     transform="translate(-146.20776,-255.22513)"
29
-     id="layer1">
30
-    <path
31
-       id="rect4361"
32
-       d="m 347.66381,255.22727 c -2.39231,-0.0413 -4.73078,0.51333 -6.84028,1.73125 -0.17129,0.0989 -0.33632,0.20489 -0.50152,0.31068 -3.46803,1.83238 -6.64163,4.83846 -8.9265,8.79597 L 149.3802,581.32449 c -1.6698,2.89218 -2.66186,5.942 -3.01901,8.90436 -0.0972,0.63442 -0.15343,1.27896 -0.15343,1.93506 0,0.0717 0.006,0.14227 0.007,0.21374 -0.0963,5.80318 2.31129,11.01809 6.93341,13.68667 2.80598,1.62003 6.01719,2.06551 9.22115,1.49768 1.09798,0.15203 2.22613,0.23511 3.38007,0.23511 l 364.02986,0 c 1.15394,0 2.28208,-0.0831 3.38006,-0.23511 3.20397,0.56784 6.41517,0.12236 9.22115,-1.49768 4.62213,-2.66858 7.02968,-7.88349 6.93342,-13.68667 10e-4,-0.0715 0.007,-0.14204 0.007,-0.21374 0,-0.65241 -0.0551,-1.29339 -0.15114,-1.92438 -0.35605,-2.9657 -1.34949,-6.01938 -3.0213,-8.91504 L 364.13287,266.06517 c -2.28487,-3.95751 -5.45847,-6.96359 -8.9265,-8.79597 -0.1652,-0.10579 -0.33023,-0.21179 -0.50151,-0.31068 -2.13906,-1.23499 -4.51373,-1.78539 -6.94105,-1.72667 -0.0333,-8.1e-4 -0.0667,-0.004 -0.1,-0.005 z m 0.1,45.01872 159.51359,276.28473 -319.0264,0 159.51281,-276.28473 z"
33
-       style="opacity:0.5;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
34
-    <g
35
-       id="text4409"
36
-       style="font-style:normal;font-weight:normal;font-size:278.96676636px;line-height:125%;font-family:sans-serif;letter-spacing:-54.46826553px;word-spacing:0px;opacity:0.5;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
37
-    <path
38
-       id="path4414"
39
-       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:278.96676636px;line-height:125%;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;letter-spacing:-54.46826553px;word-spacing:0px;opacity:0.5;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
40
-       d="m 360.21586,429.25521 q 0,20.10017 -1.49418,36.61102 -1.49418,16.27157 -3.73546,32.54313 l -14.4438,0 q -2.24128,-16.27156 -3.73546,-32.54313 -1.49419,-16.51085 -1.49419,-36.61102 l 0,-44.98609 24.90309,0 0,44.98609 z m 4.23352,107.91877 q 0,6.46077 -4.48255,11.24653 -4.48255,4.78575 -12.20252,4.78575 -7.71995,0 -12.20251,-4.78575 -4.48255,-4.78576 -4.48255,-11.24653 0,-6.46076 4.48255,-11.24652 4.48256,-4.78576 12.20251,-4.78576 7.71997,0 12.20252,4.78576 4.48255,4.78576 4.48255,11.24652 z" />
41
-  </g>
42
-</svg>

BIN
www/old/img/loader.gif View File


BIN
www/old/img/logo.png View File


+ 0
- 78
www/old/img/logo.svg View File

@@ -1,78 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
-<svg
5
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
-   xmlns:cc="http://creativecommons.org/ns#"
7
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
-   xmlns:svg="http://www.w3.org/2000/svg"
9
-   xmlns="http://www.w3.org/2000/svg"
10
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
-   width="512"
13
-   height="512"
14
-   viewBox="0 0 512.00001 512.00001"
15
-   id="svg2"
16
-   version="1.1"
17
-   inkscape:version="0.91 r13725"
18
-   sodipodi:docname="logo.svg"
19
-   inkscape:export-filename="/home/skylar/Documents/Projects/Sources/WebAppTemplate/static/img/logo.png"
20
-   inkscape:export-xdpi="90"
21
-   inkscape:export-ydpi="90">
22
-  <defs
23
-     id="defs4">
24
-    <inkscape:perspective
25
-       sodipodi:type="inkscape:persp3d"
26
-       inkscape:vp_x="-493.3276 : 245.89848 : 1"
27
-       inkscape:vp_y="0 : 1000 : 0"
28
-       inkscape:vp_z="464.45088 : 245.89848 : 1"
29
-       inkscape:persp3d-origin="-14.438371 : 160.56515 : 1"
30
-       id="perspective4236" />
31
-  </defs>
32
-  <sodipodi:namedview
33
-     id="base"
34
-     pagecolor="#ffffff"
35
-     bordercolor="#666666"
36
-     borderopacity="1.0"
37
-     inkscape:pageopacity="0.0"
38
-     inkscape:pageshadow="2"
39
-     inkscape:zoom="0.49497475"
40
-     inkscape:cx="-135.9681"
41
-     inkscape:cy="352.66131"
42
-     inkscape:document-units="px"
43
-     inkscape:current-layer="layer1"
44
-     showgrid="false"
45
-     units="px" />
46
-  <metadata
47
-     id="metadata7">
48
-    <rdf:RDF>
49
-      <cc:Work
50
-         rdf:about="">
51
-        <dc:format>image/svg+xml</dc:format>
52
-        <dc:type
53
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
54
-        <dc:title></dc:title>
55
-      </cc:Work>
56
-    </rdf:RDF>
57
-  </metadata>
58
-  <g
59
-     inkscape:label="Layer 1"
60
-     inkscape:groupmode="layer"
61
-     id="layer1"
62
-     transform="translate(0,-540.36216)">
63
-    <rect
64
-       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
65
-       id="rect4726"
66
-       width="512"
67
-       height="512"
68
-       x="0"
69
-       y="540.36218"
70
-       rx="50"
71
-       ry="50" />
72
-    <path
73
-       id="path4348"
74
-       style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:9.87128067;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
75
-       d="m 132.93564,682.51771 213.96788,-43.14304 0,313.97496 -213.96788,-37.9643 z m 213.96788,-43.14304 0,313.97496 32.16084,-45.18373 0,-217.44396 z m -213.96788,43.14304 213.96788,-43.14304 32.16084,51.34727 -167.21823,22.47784 z m 78.91049,30.68207 167.21823,-22.47784 0,217.44396 -167.21823,-19.77968 z m -78.91049,-30.68207 0,232.86762 78.91049,-26.99911 0,-175.18644 z m 0,232.86762 213.96788,37.9643 32.16084,-45.18373 -167.21823,-19.77968 z"
76
-       inkscape:connector-curvature="0" />
77
-  </g>
78
-</svg>

+ 0
- 70
www/old/img/noaccounts.svg View File

@@ -1,70 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<svg
3
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
-   xmlns:cc="http://creativecommons.org/ns#"
5
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
-   xmlns:svg="http://www.w3.org/2000/svg"
7
-   xmlns="http://www.w3.org/2000/svg"
8
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
-   version="1.1"
11
-   id="svg2"
12
-   viewBox="0 0 403.11274 163.29169"
13
-   height="163.29169"
14
-   width="403.11276"
15
-   inkscape:version="0.91 r13725"
16
-   sodipodi:docname="noaccounts.svg">
17
-  <sodipodi:namedview
18
-     pagecolor="#ffffff"
19
-     bordercolor="#666666"
20
-     borderopacity="1"
21
-     objecttolerance="10"
22
-     gridtolerance="10"
23
-     guidetolerance="10"
24
-     inkscape:pageopacity="0"
25
-     inkscape:pageshadow="2"
26
-     inkscape:window-width="1440"
27
-     inkscape:window-height="842"
28
-     id="namedview4274"
29
-     showgrid="false"
30
-     inkscape:zoom="1.1913066"
31
-     inkscape:cx="111.56795"
32
-     inkscape:cy="18.120005"
33
-     inkscape:window-x="1024"
34
-     inkscape:window-y="156"
35
-     inkscape:window-maximized="1"
36
-     inkscape:current-layer="g4375"
37
-     fit-margin-top="20"
38
-     fit-margin-bottom="20"
39
-     fit-margin-left="88.539"
40
-     fit-margin-right="88.539" />
41
-  <defs
42
-     id="defs4" />
43
-  <metadata
44
-     id="metadata7">
45
-    <rdf:RDF>
46
-      <cc:Work
47
-         rdf:about="">
48
-        <dc:format>image/svg+xml</dc:format>
49
-        <dc:type
50
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
51
-        <dc:title></dc:title>
52
-      </cc:Work>
53
-    </rdf:RDF>
54
-  </metadata>
55
-  <g
56
-     style="fill:#ffffff"
57
-     id="g4375"
58
-     transform="matrix(10.274307,0,0,10.274307,94.587448,-48.471738)">
59
-    <path
60
-       id="path4365"
61
-       d="M 0,0 24,0 24,24 0,24 Z"
62
-       inkscape:connector-curvature="0"
63
-       style="fill:none" />
64
-    <path
65
-       id="path4467"
66
-       d="m 7.9464545,12.664364 q -1.242192,0 -2.121099,-0.878908 -0.878907,-0.878908 -0.878907,-2.1210988 0,-1.24219 0.878907,-2.121099 0.878907,-0.878909 2.121099,-0.878909 1.242191,0 2.1210985,0.878909 0.878907,0.878909 0.878907,2.121099 0,1.2421908 -0.878907,2.1210988 -0.8789075,0.878908 -2.1210985,0.878908 z m 8.4140785,2.500007 1.945322,1.945316 q 0.07031,0.07032 0.07031,0.179689 0,0.101563 -0.07031,0.171875 l -1.062505,1.062503 q -0.07031,0.07032 -0.171874,0.07032 -0.109379,0 -0.179687,-0.07032 l -1.945322,-1.945317 -1.945313,1.945317 q -0.07031,0.07032 -0.179688,0.07032 -0.101566,0 -0.171874,-0.07032 l -1.062504,-1.062503 q -0.07031,-0.07032 -0.07031,-0.171875 0,-0.109375 0.07031,-0.179689 l 1.945314,-1.945316 -1.945314,-1.945318 q -0.07031,-0.07032 -0.07031,-0.179687 0,-0.101563 0.07031,-0.171876 l 1.062504,-1.062502 q 0.07031,-0.07032 0.171874,-0.07032 0.109372,0 0.179688,0.07032 l 1.945313,1.945316 1.945322,-1.945316 q 0.07031,-0.07032 0.179687,-0.07032 0.101559,0 0.171874,0.07032 l 1.062505,1.062502 q 0.07031,0.07032 0.07031,0.171876 0,0.109374 -0.07031,0.179687 z m -3.890628,0 -1.414073,1.414066 q -0.289059,0.289063 -0.289059,0.710939 0,0.414064 0.289059,0.703126 l 0.64844,0.64844 q -0.164061,0.02344 -0.343748,0.02344 l -6.8281395,0 q -0.94532,0 -1.515632,-0.539064 -0.570313,-0.539064 -0.570313,-1.484378 0,-0.414064 0.02737,-0.808596 0.02737,-0.394533 0.10938,-0.851565 0.08203,-0.457032 0.207028,-0.847658 0.125005,-0.390626 0.335943,-0.761721 0.210938,-0.371094 0.484372,-0.632814 0.27344,-0.261719 0.667968,-0.41797 0.394536,-0.15625 0.871102,-0.15625 0.148436,0 0.304685,0.132812 1.203127,0.953128 2.492196,0.953128 1.289061,0 2.4921955,-0.953128 0.156248,-0.132812 0.304684,-0.132812 0.218751,0 0.445315,0.04688 -0.218751,0.210937 -0.320317,0.390625 -0.101559,0.179688 -0.101559,0.437502 0,0.421876 0.289059,0.710938 z"
67
-       inkscape:connector-curvature="0"
68
-       style="opacity:0.5;fill:#000000;fill-opacity:1" />
69
-  </g>
70
-</svg>

+ 0
- 70
www/old/img/nokeys.svg View File

@@ -1,70 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<svg
3
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
4
-   xmlns:cc="http://creativecommons.org/ns#"
5
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
-   xmlns:svg="http://www.w3.org/2000/svg"
7
-   xmlns="http://www.w3.org/2000/svg"
8
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
-   version="1.1"
11
-   id="svg2"
12
-   viewBox="0 0 403.11274 163.29169"
13
-   height="163.29169"
14
-   width="403.11276"
15
-   inkscape:version="0.91 r13725"
16
-   sodipodi:docname="nokeys.svg">
17
-  <sodipodi:namedview
18
-     pagecolor="#ffffff"
19
-     bordercolor="#666666"
20
-     borderopacity="1"
21
-     objecttolerance="10"
22
-     gridtolerance="10"
23
-     guidetolerance="10"
24
-     inkscape:pageopacity="0"
25
-     inkscape:pageshadow="2"
26
-     inkscape:window-width="1440"
27
-     inkscape:window-height="842"
28
-     id="namedview4274"
29
-     showgrid="false"
30
-     inkscape:zoom="1.6847619"
31
-     inkscape:cx="193.17345"
32
-     inkscape:cy="81.645645"
33
-     inkscape:window-x="1024"
34
-     inkscape:window-y="1024"
35
-     inkscape:window-maximized="1"
36
-     inkscape:current-layer="g4375"
37
-     fit-margin-top="20"
38
-     fit-margin-bottom="20"
39
-     fit-margin-left="88.539"
40
-     fit-margin-right="88.539" />
41
-  <defs
42
-     id="defs4" />
43
-  <metadata
44
-     id="metadata7">
45
-    <rdf:RDF>
46
-      <cc:Work
47
-         rdf:about="">
48
-        <dc:format>image/svg+xml</dc:format>
49
-        <dc:type
50
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
51
-        <dc:title></dc:title>
52
-      </cc:Work>
53
-    </rdf:RDF>
54
-  </metadata>
55
-  <g
56
-     style="fill:#ffffff"
57
-     id="g4375"
58
-     transform="matrix(10.274307,0,0,10.274307,94.587448,-48.471738)">
59
-    <path
60
-       id="path4365"
61
-       d="M 0,0 24,0 24,24 0,24 Z"
62
-       inkscape:connector-curvature="0"
63
-       style="fill:none" />
64
-    <path
65
-       id="path4367"
66
-       d="m 11.061302,10.664366 c -0.82,-2.3300004 -3.0399999,-4.0000004 -5.6499999,-4.0000004 -3.31,0 -6,2.69 -6,6.0000004 0,3.31 2.69,6 6,6 2.61,0 4.8299999,-1.67 5.6499999,-4 l 4.35,0 0,4 4,0 0,-4 2,0 0,-4 -10.35,0 z m -5.6499999,4 c -1.1,0 -2,-0.9 -2,-2 0,-1.1 0.9,-2 2,-2 1.1,0 2,0.9 2,2 0,1.1 -0.9,2 -2,2 z"
67
-       inkscape:connector-curvature="0"
68
-       style="opacity:0.5;fill:#000000;fill-opacity:1" />
69
-  </g>
70
-</svg>

+ 0
- 7
www/old/js/hammer.min.js
File diff suppressed because it is too large
View File


+ 0
- 6
www/old/js/jquery-ui.min.js
File diff suppressed because it is too large
View File


+ 0
- 6
www/old/js/jsOTP.min.js
File diff suppressed because it is too large
View File


+ 0
- 320
www/old/js/material-palette.js View File

@@ -1,320 +0,0 @@
1
-/*
2
- Based on the file
3
- https://github.com/srekanui/google-material-color-palette-json/blob/master/lib/palette.json
4
- 
5
- MIT License
6
- 
7
- Copyright (c) 2016 Sravan Kumar Rekandar
8
- 
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
- 
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
- 
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- SOFTWARE.
26
- */
27
-_PALETTE = {
28
-    "red": {
29
-        "shade_50": "#ffebee",
30
-        "shade_100": "#ffcdd2",
31
-        "shade_200": "#ef9a9a",
32
-        "shade_300": "#e57373",
33
-        "shade_400": "#ef5350",
34
-        "shade_500": "#f44336",
35
-        "shade_600": "#e53935",
36
-        "shade_700": "#d32f2f",
37
-        "shade_800": "#c62828",
38
-        "shade_900": "#b71c1c",
39
-        "shade_A100": "#ff8a80",
40
-        "shade_A200": "#ff5252",
41
-        "shade_A400": "#ff1744",
42
-        "shade_A700": "#d50000"
43
-    },
44
-    "pink": {
45
-        "shade_50": "#fce4ec",
46
-        "shade_100": "#f8bbd0",
47
-        "shade_200": "#f48fb1",
48
-        "shade_300": "#f06292",
49
-        "shade_400": "#ec407a",
50
-        "shade_500": "#e91e63",
51
-        "shade_600": "#d81b60",
52
-        "shade_700": "#c2185b",
53
-        "shade_800": "#ad1457",
54
-        "shade_900": "#880e4f",
55
-        "shade_A100": "#ff80ab",
56
-        "shade_A200": "#ff4081",
57
-        "shade_A400": "#f50057",
58
-        "shade_A700": "#c51162"
59
-    },
60
-    "purple": {
61
-        "shade_50": "#f3e5f5",
62
-        "shade_100": "#e1bee7",
63
-        "shade_200": "#ce93d8",
64
-        "shade_300": "#ba68c8",
65
-        "shade_400": "#ab47bc",
66
-        "shade_500": "#9c27b0",
67
-        "shade_600": "#8e24aa",
68
-        "shade_700": "#7b1fa2",
69
-        "shade_800": "#6a1b9a",
70
-        "shade_900": "#4a148c",
71
-        "shade_A100": "#ea80fc",
72
-        "shade_A200": "#e040fb",
73
-        "shade_A400": "#d500f9",
74
-        "shade_A700": "#aa00ff"
75
-    },
76
-    "deepPurple": {
77
-        "shade_50": "#ede7f6",
78
-        "shade_100": "#d1c4e9",
79
-        "shade_200": "#b39ddb",
80
-        "shade_300": "#9575cd",
81
-        "shade_400": "#7e57c2",
82
-        "shade_500": "#673ab7",
83
-        "shade_600": "#5e35b1",
84
-        "shade_700": "#512da8",
85
-        "shade_800": "#4527a0",
86
-        "shade_900": "#311b92",
87
-        "shade_A100": "#b388ff",
88
-        "shade_A200": "#7c4dff",
89
-        "shade_A400": "#651fff",
90
-        "shade_A700": "#6200ea"
91
-    },
92
-    "indigo": {
93
-        "shade_50": "#e8eaf6",
94
-        "shade_100": "#c5cae9",
95
-        "shade_200": "#9fa8da",
96
-        "shade_300": "#7986cb",
97
-        "shade_400": "#5c6bc0",
98
-        "shade_500": "#3f51b5",
99
-        "shade_600": "#3949ab",
100
-        "shade_700": "#303f9f",
101
-        "shade_800": "#283593",
102
-        "shade_900": "#1a237e",
103
-        "shade_A100": "#8c9eff",
104
-        "shade_A200": "#536dfe",
105
-        "shade_A400": "#3d5afe",
106
-        "shade_A700": "#304ffe"
107
-    },
108
-    "blue": {
109
-        "shade_50": "#e3f2fd",
110
-        "shade_100": "#bbdefb",
111
-        "shade_200": "#90caf9",
112
-        "shade_300": "#64b5f6",
113
-        "shade_400": "#42a5f5",
114
-        "shade_500": "#2196f3",
115
-        "shade_600": "#1e88e5",
116
-        "shade_700": "#1976d2",
117
-        "shade_800": "#1565c0",
118
-        "shade_900": "#0d47a1",
119
-        "shade_A100": "#82b1ff",
120
-        "shade_A200": "#448aff",
121
-        "shade_A400": "#2979ff",
122
-        "shade_A700": "#2962ff"
123
-    },
124
-    "lightBlue": {
125
-        "shade_50": "#e1f5fe",
126
-        "shade_100": "#b3e5fc",
127
-        "shade_200": "#81d4fa",
128
-        "shade_300": "#4fc3f7",
129
-        "shade_400": "#29b6f6",
130
-        "shade_500": "#03a9f4",
131
-        "shade_600": "#039be5",
132
-        "shade_700": "#0288d1",
133
-        "shade_800": "#0277bd",
134
-        "shade_900": "#01579b",
135
-        "shade_A100": "#80d8ff",
136
-        "shade_A200": "#40c4ff",
137
-        "shade_A400": "#00b0ff",
138
-        "shade_A700": "#0091ea"
139
-    },
140
-    "cyan": {
141
-        "shade_50": "#e0f7fa",
142
-        "shade_100": "#b2ebf2",
143
-        "shade_200": "#80deea",
144
-        "shade_300": "#4dd0e1",
145
-        "shade_400": "#26c6da",
146
-        "shade_500": "#00bcd4",
147
-        "shade_600": "#00acc1",
148
-        "shade_700": "#0097a7",
149
-        "shade_800": "#00838f",
150
-        "shade_900": "#006064",
151
-        "shade_A100": "#84ffff",
152
-        "shade_A200": "#18ffff",
153
-        "shade_A400": "#00e5ff",
154
-        "shade_A700": "#00b8d4"
155
-    },
156
-    "teal": {
157
-        "shade_50": "#e0f2f1",
158
-        "shade_100": "#b2dfdb",
159
-        "shade_200": "#80cbc4",
160
-        "shade_300": "#4db6ac",
161
-        "shade_400": "#26a69a",
162
-        "shade_500": "#009688",
163
-        "shade_600": "#00897b",
164
-        "shade_700": "#00796b",
165
-        "shade_800": "#00695c",
166
-        "shade_900": "#004d40",
167
-        "shade_A100": "#a7ffeb",
168
-        "shade_A200": "#64ffda",
169
-        "shade_A400": "#1de9b6",
170
-        "shade_A700": "#00bfa5"
171
-    },
172
-    "green": {
173
-        "shade_50": "#e8f5e9",
174
-        "shade_100": "#c8e6c9",
175
-        "shade_200": "#a5d6a7",
176
-        "shade_300": "#81c784",
177
-        "shade_400": "#66bb6a",
178
-        "shade_500": "#4caf50",
179
-        "shade_600": "#43a047",
180
-        "shade_700": "#388e3c",
181
-        "shade_800": "#2e7d32",
182
-        "shade_900": "#1b5e20",
183
-        "shade_A100": "#b9f6ca",
184
-        "shade_A200": "#69f0ae",
185
-        "shade_A400": "#00e676",
186
-        "shade_A700": "#00c853"
187
-    },
188
-    "lightGreen": {
189
-        "shade_50": "#f1f8e9",
190
-        "shade_100": "#dcedc8",
191
-        "shade_200": "#c5e1a5",
192
-        "shade_300": "#aed581",
193
-        "shade_400": "#9ccc65",
194
-        "shade_500": "#8bc34a",
195
-        "shade_600": "#7cb342",
196
-        "shade_700": "#689f38",
197
-        "shade_800": "#558b2f",
198
-        "shade_900": "#33691e",
199
-        "shade_A100": "#ccff90",
200
-        "shade_A200": "#b2ff59",
201
-        "shade_A400": "#76ff03",
202
-        "shade_A700": "#64dd17"
203
-    },
204
-    "lime": {
205
-        "shade_50": "#f9fbe7",
206
-        "shade_100": "#f0f4c3",
207
-        "shade_200": "#e6ee9c",
208
-        "shade_300": "#dce775",
209
-        "shade_400": "#d4e157",
210
-        "shade_500": "#cddc39",
211
-        "shade_600": "#c0ca33",
212
-        "shade_700": "#afb42b",
213
-        "shade_800": "#9e9d24",
214
-        "shade_900": "#827717",
215
-        "shade_A100": "#f4ff81",
216
-        "shade_A200": "#eeff41",
217
-        "shade_A400": "#c6ff00",
218
-        "shade_A700": "#aeea00"
219
-    },
220
-    "yellow": {
221
-        "shade_50": "#fffde7",
222
-        "shade_100": "#fff9c4",
223
-        "shade_200": "#fff59d",
224
-        "shade_300": "#fff176",
225
-        "shade_400": "#ffee58",
226
-        "shade_500": "#ffeb3b",
227
-        "shade_600": "#fdd835",
228
-        "shade_700": "#fbc02d",
229
-        "shade_800": "#f9a825",
230
-        "shade_900": "#f57f17",
231
-        "shade_A100": "#ffff8d",
232
-        "shade_A200": "#ffff00",
233
-        "shade_A400": "#ffea00",
234
-        "shade_A700": "#ffd600"
235
-    },
236
-    "amber": {
237
-        "shade_50": "#fff8e1",
238
-        "shade_100": "#ffecb3",
239
-        "shade_200": "#ffe082",
240
-        "shade_300": "#ffd54f",
241
-        "shade_400": "#ffca28",
242
-        "shade_500": "#ffc107",
243
-        "shade_600": "#ffb300",
244
-        "shade_700": "#ffa000",
245
-        "shade_800": "#ff8f00",
246
-        "shade_900": "#ff6f00",
247
-        "shade_A100": "#ffe57f",
248
-        "shade_A200": "#ffd740",
249
-        "shade_A400": "#ffc400",
250
-        "shade_A700": "#ffab00"
251
-    },
252
-    "orange": {
253
-        "shade_50": "#fff3e0",
254
-        "shade_100": "#ffe0b2",
255
-        "shade_200": "#ffcc80",
256
-        "shade_300": "#ffb74d",
257
-        "shade_400": "#ffa726",
258
-        "shade_500": "#ff9800",
259
-        "shade_600": "#fb8c00",
260
-        "shade_700": "#f57c00",
261
-        "shade_800": "#ef6c00",
262
-        "shade_900": "#e65100",
263
-        "shade_A100": "#ffd180",
264
-        "shade_A200": "#ffab40",
265
-        "shade_A400": "#ff9100",
266
-        "shade_A700": "#ff6d00"
267
-    },
268
-    "deepOrange": {
269
-        "shade_50": "#fbe9e7",
270
-        "shade_100": "#ffccbc",
271
-        "shade_200": "#ffab91",
272
-        "shade_300": "#ff8a65",
273
-        "shade_400": "#ff7043",
274
-        "shade_500": "#ff5722",
275
-        "shade_600": "#f4511e",
276
-        "shade_700": "#e64a19",
277
-        "shade_800": "#d84315",
278
-        "shade_900": "#bf360c",
279
-        "shade_A100": "#ff9e80",
280
-        "shade_A200": "#ff6e40",
281
-        "shade_A400": "#ff3d00",
282
-        "shade_A700": "#dd2c00"
283
-    },
284
-    "brown": {
285
-        "shade_50": "#efebe9",
286
-        "shade_100": "#d7ccc8",
287
-        "shade_200": "#bcaaa4",
288
-        "shade_300": "#a1887f",
289
-        "shade_400": "#8d6e63",
290
-        "shade_500": "#795548",
291
-        "shade_600": "#6d4c41",
292
-        "shade_700": "#5d4037",
293
-        "shade_800": "#4e342e",
294
-        "shade_900": "#3e2723"
295
-    },
296
-    "grey": {
297
-        "shade_50": "#fafafa",
298
-        "shade_100": "#f5f5f5",
299
-        "shade_200": "#eeeeee",
300
-        "shade_300": "#e0e0e0",
301
-        "shade_400": "#bdbdbd",
302
-        "shade_500": "#9e9e9e",
303
-        "shade_600": "#757575",
304
-        "shade_700": "#616161",
305
-        "shade_800": "#424242",
306
-        "shade_900": "#212121"
307
-    },
308
-    "blueGrey": {
309
-        "shade_50": "#eceff1",
310
-        "shade_100": "#cfd8dc",
311
-        "shade_200": "#b0bec5",
312
-        "shade_300": "#90a4ae",
313
-        "shade_400": "#78909c",
314
-        "shade_500": "#607d8b",
315
-        "shade_600": "#546e7a",
316
-        "shade_700": "#455a64",
317
-        "shade_800": "#37474f",
318
-        "shade_900": "#263238"
319
-    }
320
-}

+ 0
- 61
www/old/pages/accounts.html View File

@@ -1,61 +0,0 @@
1
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
2
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
3
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
4
-<div class="circle-btn btn btn-light-blue" onclick="openscreen('setup1', 'FADE');">
5
-    <img src="icons/ic_add.svg" />
6
-</div>
7
-<div id="noaccounts">
8
-    <div class="app-dock-container">
9
-        <div class="app-dock" id="app-dock">
10
-            <div style="margin-top: 50px; text-align: center; font-size: 120%;">
11
-                <img src="img/noaccounts.svg" alt="" style="max-width: 80%; max-height: 25%;" />
12
-                <br /><br />
13
-                <p style="max-width: 80%; margin: 0 auto;">You haven't added any Business Apps accounts yet.  Press <i class="fa fa-plus"></i> to add one.</p>
14
-            </div>
15
-        </div>
16
-    </div>
17
-</div>
18
-<div class="list-group" id="accountlist">
19
-</div>
20
-<script>
21
-    setnavbar("app", "Accounts", "settings");
22
-
23
-    var accounts = getaccounts();
24
-    if (accounts.length > 0) {
25
-        $("#noaccounts").css("display", "none");
26
-    }
27
-    for (var i = 0; i < accounts.length; i++) {
28
-        // Escape HTML characters
29
-        var username = $('<div/>').html(accounts[i]["username"]).html();
30
-        var syncurl = $('<div/>').html(accounts[i]["syncurl"].replace("/mobile/index.php", "")).html();
31
-        var synckey = accounts[i]["key"];
32
-        var stars = "";
33
-        for (var j = 0; j < synckey.length - 6; j++) {
34
-            stars += "*";
35
-        }
36
-        synckey = $('<div/>').html(synckey.slice(0, 3) + stars + synckey.slice(-3)).html();
37
-        $("#accountlist").append("<div class=\"list-group-item\" id=\"accountitem_" + i + "\">"
38
-                + "<span class=\"pull-right\" style=\"color: red;\" onclick=\"deleteAccount(" + i + ")\"><i class=\"fa fa-trash-o\"></i></span>"
39
-                + "<div onclick=\"switchAccount(" + i + ")\" class=\"h3\" style=\"font-weight: bold;\"><i class=\"fa fa-user\"></i> " + username + "</div>"
40
-                + "<p onclick=\"switchAccount(" + i + ")\">"
41
-                + "<i class=\"fa fa-key\"></i> Pairing Code: " + synckey + "<br />"
42
-                + "<i class=\"fa fa-server\"></i> Server: " + syncurl + "</p>"
43
-                + "</div>");
44
-    }
45
-
46
-    function deleteAccount(id) {
47
-        navigator.notification.confirm("Really delete account?  You'll need to re-add the account to use it on this device again.", function (result) {
48
-            if (result != 1) {
49
-                return;
50
-            }
51
-            rmaccount(id);
52
-            openscreen("accounts");
53
-        }, "Delete " + accounts[id]['username'] + "?");
54
-    }
55
-
56
-    function switchAccount(id) {
57
-        switchaccount(id);
58
-        openscreen("home");
59
-        navigator.notification.alert("Successfully switched accounts.", null, "Switched", 'OK');
60
-    }
61
-</script>

+ 0
- 3337
www/old/pages/credits.html
File diff suppressed because it is too large
View File


+ 0
- 19
www/old/pages/homeloaderror.html View File

@@ -1,19 +0,0 @@
1
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
2
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
3
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
4
-<div class="app-dock-container">
5
-    <div class="app-dock" id="app-dock">
6
-        <div style="margin-top: 50px; text-align: center; font-size: 120%;">
7
-            <img src="img/error.svg" alt="" style="max-width: 80%; max-height: 33%;" />
8
-            <br /><br />
9
-            Could not load application data from server.
10
-            <br />
11
-            <div class="btn btn-blue" onclick="openscreen('home')">
12
-                Try again
13
-            </div>
14
-        </div>
15
-    </div>
16
-</div>
17
-<script>
18
-    setnavbar('home');
19
-</script>

+ 0
- 36
www/old/pages/mobilecode.html View File

@@ -1,36 +0,0 @@
1
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
2
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
3
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
4
-
5
-<div>
6
-    <div class="panel panel-default">
7
-        <div class="panel-body">
8
-            <h3 id="code" style="text-align: center;"></h3>
9
-            <div class="pull-right">
10
-                <button class="btn btn-primary" onclick="gencode()"><i class="fa fa-refresh"></i></button>
11
-            </div>
12
-        </div>
13
-    </div>
14
-</div>
15
-
16
-<script>
17
-    setnavbar("app", "Login Code", "home");
18
-
19
-    function gencode() {
20
-        $.post(localStorage.getItem("syncurl"), {
21
-            username: localStorage.getItem("username"),
22
-            key: localStorage.getItem("key"),
23
-            action: "gencode"
24
-        }, function (data) {
25
-            if (data.status === 'OK') {
26
-                $("#code").text("B-" + data.code);
27
-            } else {
28
-                navigator.notification.alert(data.msg, null, "Error", 'Dismiss');
29
-            }
30
-        }, "json").fail(function () {
31
-            navigator.notification.alert("Unable to request code.  Try again in a few seconds.", null, "Error", 'Dismiss');
32
-        });
33
-    }
34
-
35
-    gencode();
36
-</script>

+ 0
- 156
www/old/pages/settings.html View File

@@ -1,156 +0,0 @@
1
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
2
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
3
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
4
-<div class="list-group">
5
-    <div class="list-group-item">
6
-        <h4><i class="fa fa-user"></i> <span id="username">Not logged in</span></h4>
7
-        <i class="fa fa-key"></i> Pairing Code: <span id="pairingkey">None</span><br />
8
-        <i class="fa fa-server"></i> Server: <span id="syncurl">None</span>
9
-    </div>
10
-    <div class="list-group-item" onclick="openscreen('accounts', 'FADE');">
11
-        <b>Manage and switch accounts</b>
12
-    </div>
13
-</div>
14
-
15
-<div class="list-group">
16
-    <div class="list-group-item" onclick="updatepassword()">
17
-        <b>Update Password</b>
18
-        <p>Enter your new password if you changed it from AccountHub.</p>
19
-    </div>
20
-    <div class="list-group-item" onclick="deleteall()">
21
-        <b>Disconnect All Accounts</b>
22
-        <p>Forget all account data for all connected accounts and open the setup tool.</p>
23
-    </div>
24
-</div>
25
-
26
-<div class="list-group">
27
-    <div class="list-group-item" onclick="toggleAnimations()">
28
-        <b>Turn animations <span id="animations_offon_label">off</span></b>
29
-        <p>Disable transitions and animations on slow devices or to save battery life.</p>
30
-    </div>
31
-</div>
32
-
33
-<div class="list-group">
34
-    <div class="list-group-item" onclick="openscreen('zeroconf', 'FADE')">
35
-        <b>Server Locator</b>
36
-        <p>Scan the local network for Business Apps services.</p>
37
-    </div>
38
-</div>
39
-
40
-<div class="list-group">
41
-    <div class="list-group-item">
42
-        <b><span id="app_name">Netsyms Business Apps for Mobile</span> v<span id="app_version">1.x</span></b>
43
-        <br />
44
-        Copyright &copy; 2018 Netsyms Technologies.  Licensed under the <span style="text-decoration: underline;" onclick="window.open('https://source.netsyms.com/Business/MobileApp?pk_campaign=BusinessMobile-SystemBrowser', '_system', '');">Mozilla Public License 2.0</span>.
45
-        <br />
46
-        <span style="text-decoration: underline;" onclick="window.open('https://netsyms.com/?pk_campaign=BusinessMobile-SystemBrowser', '_system', '');">https://netsyms.com</span>
47
-        <br />
48
-        <span id="app_package">com.netsyms.BusinessMobile</span>
49
-        <br />
50
-        build #<span id="app_version_code">1xxxx</span>
51
-    </div>
52
-    <div class="list-group-item" onclick="openscreen('credits', 'FADE')">
53
-        <b>Credits and Open Source</b>
54
-    </div>
55
-    <div class="list-group-item" onclick="cordova.InAppBrowser.open('https://netsyms.biz/mobile-privacy-policy', '_blank', 'location=yes');">
56
-        <b>Privacy Policy</b>
57
-    </div>
58
-</div>
59
-
60
-<script>
61
-    setnavbar("settings");
62
-
63
-    function deleteall() {
64
-        navigator.notification.confirm("Really wipe user data?  You will need to resync the app with AccountHub to use it again.  This will not delete 2-factor auth keys.", function (result) {
65
-            if (result != 1) {
66
-                return;
67
-            }
68
-            // Wipe localStorage
69
-            localStorage.removeItem("username");
70
-            localStorage.removeItem("password");
71
-            localStorage.removeItem("syncurl");
72
-            localStorage.removeItem("key");
73
-            localStorage.removeItem("accounts");
74
-            NativeStorage.remove("accounts", function () {
75
-                // force-reload app
76
-                navigator.notification.alert("All connection data and credentials erased.", function () {
77
-                    restartApplication();
78
-                }, "App Reset", 'Continue');
79
-            });
80
-        }, "Are you sure?");
81
-    }
82
-
83
-    function toggleAnimations() {
84
-        if (localStorage.getItem("animations") === null || localStorage.getItem("animations") === "true") {
85
-            localStorage.setItem("animations", "false");
86
-            $.fx.off = true;
87
-            $('#animations_offon_label').text("on");
88
-            navigator.notification.alert("Animations turned off.", null, "Setting updated", "Dismiss");
89
-        } else {
90
-            localStorage.setItem("animations", "true");
91
-            $.fx.off = false;
92
-            $('#animations_offon_label').text("off");
93
-            navigator.notification.alert("Animations turned on.", null, "Setting updated", "Dismiss");
94
-        }
95
-    }
96
-
97
-    /**
98
-     * Prompts the user to enter their password, then checks the password and
99
-     * saves or displays an error.
100
-     * @returns {undefined}
101
-     */
102
-    function updatepassword() {
103
-        navigator.notification.prompt("Re-enter your password.", function (results) {
104
-            if (results.buttonIndex == 1) {
105
-                $.post(localStorage.getItem("syncurl"), {
106
-                    username: localStorage.getItem("username"),
107
-                    key: localStorage.getItem("key"),
108
-                    password: results.input1,
109
-                    action: "check_password"
110
-                }, function (data) {
111
-                    if (data.status === 'OK') {
112
-                        localStorage.setItem("password", results.input1);
113
-                        passwd(results.input1);
114
-                        navigator.notification.alert("Saved password updated.", function () {
115
-                            // Reload app just to be safe
116
-                            restartApplication();
117
-                        }, "Success", 'Continue');
118
-                    } else {
119
-                        navigator.notification.alert(data.msg, null, "Error", 'Dismiss');
120
-                    }
121
-                }, "json").fail(function () {
122
-                    navigator.notification.alert("Could not connect to the server.  Try again later.", null, "Error", 'Dismiss');
123
-                });
124
-            }
125
-        }, "Update Password", ["Save", "Cancel"]);
126
-    }
127
-
128
-    if (localStorage.getItem("animations") === "false") {
129
-        $('#animations_offon_label').text("on");
130
-    }
131
-
132
-    cordova.getAppVersion.getVersionNumber(function (version) {
133
-        $('#app_version').text(version);
134
-    });
135
-    cordova.getAppVersion.getPackageName(function (package) {
136
-        $('#app_package').text(package);
137
-    });
138
-    cordova.getAppVersion.getVersionCode(function (version) {
139
-        $('#app_version_code').text(version);
140
-    });
141
-
142
-    if (localStorage.getItem("username")) {
143
-        $("#username").text(localStorage.getItem("username"));
144
-    }
145
-    if (localStorage.getItem("key")) {
146
-        var key = localStorage.getItem("key");
147
-        var stars = "";
148
-        for (var i = 0; i < key.length - 6; i++) {
149
-            stars += "*";
150
-        }
151
-        $("#pairingkey").text(key.slice(0, 3) + stars + key.slice(-3));
152
-    }
153
-    if (localStorage.getItem("syncurl")) {
154
-        $("#syncurl").text(localStorage.getItem("syncurl").replace("/mobile/index.php", ""));
155
-    }
156
-</script>

+ 0
- 88
www/old/pages/zeroconf.html View File

@@ -1,88 +0,0 @@
1
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
2
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
3
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
4
-<!--
5
-Sample avahi-daemon configuration for server detection:
6
-/etc/avahi/services/bizapps.service
7
-
8
-<?xml version="1.0" standalone='no'?>
9
-<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
10
-<service-group>
11
- <name>BizApps</name>
12
-  <service>
13
-   <type>_http._tcp</type>
14
-   <port>80</port>
15
-   <txt-record>appid=bizappserver</txt-record>
16
-   <txt-record>webprotocol=http</txt-record>
17
-   <txt-record>webpath=/accounthub</txt-record>
18
-   <txt-record>model=other</txt-record>
19
-  </service>
20
-</service-group>
21
--->
22
-<br />
23
-
24
-<div class="alert alert-blue">This tool scans for Business Apps servers on the local network.  Tap on a server to view it in a web browser.  Note: Cloud installations will not appear here.</div>
25
-<div class="list-group" id="zero-list">
26
-    <div class="list-group-item" id="searching-message">
27
-        <i class="fa fa-spinner fa-spin"></i> Searching...
28
-    </div>
29
-    <div class="list-group-item" id="not-found-message" style="display: none;">
30
-        <i class="fa fa-search"></i> No services found on local network.
31
-    </div>
32
-</div>
33
-<div class="btn btn-primary" onclick="stopScanning(); scanZeroconf();"><i class="fa fa-refresh"></i> Rescan</div>
34
-
35
-<script>
36
-    var zeroconf = cordova.plugins.zeroconf;
37
-    zeroconf.registerAddressFamily = 'ipv4'; // or 'ipv6' ('any' by default)
38
-    zeroconf.watchAddressFamily = 'ipv4'; // or 'ipv6' ('any' by default)
39
-
40
-    function scanZeroconf() {
41
-        $("#searching-message").css('display', 'block');
42
-        $("#not-found-message").css('display', 'none');
43
-        zeroconf.watch('_http._tcp.', 'local.', function (result) {
44
-            var action = result.action;
45
-            var service = result.service;
46
-            // Ignore other services
47
-            if (typeof service.txtRecord.appid !== 'undefined' && service.txtRecord.appid == "bizappserver") {
48
-                var ipaddr = service.ipv4Addresses[0];
49
-                var divid = "#server" + ipaddr.replace(/\./gi, '');
50
-                if (action == 'added') {
51
-                    console.log('service added', service);
52
-                    var model = service.txtRecord.model;
53
-                    if ((service.txtRecord.webprotocol == "http" || service.txtRecord.webprotocol == "https") && Number.isInteger(service.port)) {
54
-                        var url = service.txtRecord.webprotocol
55
-                                + "://"
56
-                                + ipaddr
57
-                                + (service.port == 80 || service.port == 443 ? "" : ":" + service.port)
58
-                                + service.txtRecord.webpath;
59
-                        var itemcontent = "<b>" + $('<span>').text(ipaddr).html() + "</b><br />URL: " + $('<span>').text(url).html() + "<br />Model: " + $('<span>').text(model).html();
60
-                        if (document.getElementById(divid) == null) {
61
-                            $('#zero-list').append("<div class=\"list-group-item\" id=\"" + divid + "\" data-zeroconf=\"1\">" + itemcontent + "</div>");
62
-                        } else {
63
-                            $(divid).html(itemcontent);
64
-                        }
65
-                        document.getElementById(divid).onclick = function () {
66
-                            window.open(url, "_system");
67
-                        }
68
-                    }
69
-                } else {
70
-                    console.log('service removed', service);
71
-                    $(divid).remove();
72
-                }
73
-            }
74
-        });
75
-        setTimeout(stopScanning, 10 * 1000);
76
-    }
77
-
78
-    function stopScanning() {
79
-        zeroconf.unwatch('_http._tcp.', 'local.');
80
-        $("#searching-message").css('display', 'none');
81
-        if ($(".list-group-item[data-zeroconf]").length != true) {
82
-            $("#not-found-message").css('display', 'block');
83
-        }
84
-    }
85
-
86
-    setnavbar("app", "Server Locator", "settings");
87
-    scanZeroconf();
88
-</script>

Loading…
Cancel
Save