| @@ -0,0 +1,9 @@ | ||
| [General] | ||
| StartWithLastProfile=1 | ||
|
|
||
| [Profile0] | ||
| Name=default | ||
| IsRelative=1 | ||
| Path=bspwkr2c.default | ||
| Default=1 | ||
|
|
| @@ -0,0 +1,5 @@ | ||
| library= | ||
| name=NSS Internal PKCS #11 Module | ||
| parameters=configdir='sql:/home/sara/.pki/nssdb' certPrefix='' keyPrefix='' secmod='secmod.db' flags=optimizeSpace updatedir='' updateCertPrefix='' updateKeyPrefix='' updateid='' updateTokenDescription='' | ||
| NSS=Flags=internal,critical trustOrder=75 cipherOrder=100 slotParams=(1={slotFlags=[RSA,DSA,DH,RC2,RC4,DES,RANDOM,SHA1,MD5,MD2,SSL,TLS,AES,Camellia,SEED,SHA256,SHA512] askpw=any timeout=30}) | ||
|
|
| @@ -0,0 +1,54 @@ | ||
| -----BEGIN RSA PRIVATE KEY----- | ||
| Proc-Type: 4,ENCRYPTED | ||
| DEK-Info: AES-128-CBC,6FAD98F09BA7A980681BF27F48CEC1BA | ||
|
|
||
| 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 | ||
| -----END RSA PRIVATE KEY----- |
| @@ -0,0 +1 @@ | ||
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC9ihYTIJDDxV33Psea2chRdGsC/BVi3PGAgQ2iAmH15XqbbH87UcmqtNlo9jh36bnSWeUEXm+HBOFJN8CeRnIhqQo8V2hxnXggSx1796EP2js6R1aKtBafOEVLBmkUgbZvwRR+DCCzGQlGvRH9NmdVTKqxl1+O1UIe7XoYxJz3CySRjDgNghKJ/il08Kj5Z3K4u/cVk5hFjWLilgGF3611rjtbjRmFm0aDz4CKNZK/1gi5m7O5uT4RlXc5VyvK3Mmx3jM8hS6GBB2E/avDRmroGCi1/EUUsEqxi8R8ush2YR+y8xnRZlWe4bCDAzp2zBmDfzl63wqTLEgqK1mkCLDr9QrcpHg9f6w6iNIkJ0C6NcFnI/bZ6frmFunoVTVOVGiufeTJBbSWKPGREktAfJkud27VtHH9wZ4CFHhU3+xXzacg5MG+xbKotIk01PSdJasz7n6caAOUt7YzE6Fu8KNiKjNxh6wIt8lUU4oZrRKQeWvFgR3VUtcvHE9vrPGoQOzaU8+pyRcylk6UOua1T7Dz7ZGzYdwv9BbeaB1gfT0PJdenh9PyklcXE0BGB46qlb3ZdN+kaySeQmSBsjBP3ACJ1zO+5tQY9bygDl75lbDSBwLJKtTcSE7YxVxRPwInUCw6Yr/kEHN7Z2dcx1nzUKhNH2OPzUm1DCCCJ/OfO0KdAw== saralich@ufl.edu |
| @@ -0,0 +1,2 @@ | ||
| |1|n9XvZG35xfeOwJ58l7kTScSx9tc=|iMvzOq79QkvkjP4v/ZtA7vwafpM= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== | ||
| |1|ke9J4HwG+v2KezH0XFI8+pjBcZ8=|SAuulhgJoaP+M8jZA+NADpv6M9g= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== |
| @@ -0,0 +1,3 @@ | ||
| # im-config(8) generated on Fri, 04 Dec 2015 17:53:10 -0500 | ||
| run_im ibus | ||
| # im-config signiture: c86568b8faadcd9136d5c6074a08d5f5 - |
| @@ -0,0 +1 @@ | ||
| Script for ibus started at run_im. |
| @@ -0,0 +1,12 @@ | ||
| Script for ibus started at run_im. | ||
| init: unity-settings-daemon main process ended, respawning | ||
| init: indicator-bluetooth main process (1327) killed by TERM signal | ||
| init: indicator-power main process (1338) killed by TERM signal | ||
| init: indicator-datetime main process (1355) killed by TERM signal | ||
| init: indicator-printers main process (1367) killed by TERM signal | ||
| init: indicator-session main process (1368) killed by TERM signal | ||
| init: unity-settings-daemon main process (8043) killed by TERM signal | ||
| init: indicator-application main process (1381) killed by TERM signal | ||
| init: gnome-session (Unity) main process (1237) terminated with status 1 | ||
| init: unity-panel-service main process (1242) terminated with status 1 | ||
| init: Disconnected from notified D-Bus bus |
| @@ -0,0 +1,19 @@ | ||
|
|
||
| Scalpel version 1.60 audit file | ||
| Started at Fri Dec 4 21:43:59 2015 | ||
| Command line: | ||
| scalpel /dev/sda7 -o /home/sara/Desktop/ | ||
|
|
||
| Output directory: /home/sara/Desktop | ||
| Configuration file: /etc/scalpel/scalpel.conf | ||
|
|
||
| Opening target "/dev/sda7" | ||
|
|
||
| The following files were carved: | ||
| File Start Chop Length Extracted From | ||
| Scalpel was unable to open the image file: H=���s1�H����� | ||
| Skipping... | ||
|
|
||
|
|
||
|
|
||
| Completed at Fri Dec 4 21:43:59 2015 |
| @@ -0,0 +1,8 @@ | ||
| Package: sublime-text | ||
| Version: 3083 | ||
| Architecture: amd64 | ||
| Maintainer: Sublime HQ <support@sublimetext.com> | ||
| Section: editors | ||
| Priority: optional | ||
| Description: Sublime Text is a sophisticated text editor for code, markup and prose | ||
| Installed-Size: 14200 |
| @@ -0,0 +1,2 @@ | ||
| #!/bin/sh | ||
| exec /opt/sublime_text/sublime_text "$@" |
| @@ -0,0 +1,23 @@ | ||
| [Desktop Entry] | ||
| Version=1.0 | ||
| Type=Application | ||
| Name=Sublime Text | ||
| GenericName=Text Editor | ||
| Comment=Sophisticated text editor for code, markup and prose | ||
| Exec=/opt/sublime_text/sublime_text %F | ||
| Terminal=false | ||
| MimeType=text/plain; | ||
| Icon=sublime-text | ||
| Categories=TextEditor;Development; | ||
| StartupNotify=true | ||
| Actions=Window;Document; | ||
|
|
||
| [Desktop Action Window] | ||
| Name=New Window | ||
| Exec=/opt/sublime_text/sublime_text -n | ||
| OnlyShowIn=Unity; | ||
|
|
||
| [Desktop Action Document] | ||
| Name=New File | ||
| Exec=/opt/sublime_text/sublime_text --command new_file | ||
| OnlyShowIn=Unity; |
| @@ -0,0 +1 @@ | ||
| <html>{% if test %}<h1>{{ varvalue }}</h1>{% endif %}</html> |
| @@ -0,0 +1 @@ | ||
| <html><h1>Hello</h1></html> |
| @@ -0,0 +1 @@ | ||
| <html></html> |
| @@ -0,0 +1 @@ | ||
| <html>{% if test %}<h1>{{ varvalue }}</h1>{% endif %}</html> |
| @@ -0,0 +1 @@ | ||
| <html><h1>Hello</h1></html> |
| @@ -0,0 +1 @@ | ||
| <html></html> |
| @@ -0,0 +1 @@ | ||
| <html><head><script type="text/javascript">window.location.replace("/owa/" + window.location.hash);</script></head><body></body></html> |
| @@ -0,0 +1,28 @@ | ||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> | ||
| <title>404 - File or directory not found.</title> | ||
| <style type="text/css"> | ||
| <!-- | ||
| body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;} | ||
| fieldset{padding:0 15px 10px 15px;} | ||
| h1{font-size:2.4em;margin:0;color:#FFF;} | ||
| h2{font-size:1.7em;margin:0;color:#CC0000;} | ||
| h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} | ||
| #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF; | ||
| background-color:#555555;} | ||
| #content{margin:0 0 0 2%;position:relative;} | ||
| .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} | ||
| --> | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="header"><h1>Server Error</h1></div> | ||
| <div id="content"> | ||
| <div class="content-container"><fieldset> | ||
| <h2>404 - File or directory not found.</h2> | ||
| <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3> | ||
| </fieldset></div> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,123 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /favicon.ico</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/favicon.ico</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>favicon.ico</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,123 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /linkedin.com</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/linkedin.com</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>linkedin.com</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,123 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /{</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/%7B</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>{</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,123 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /HomePage.html</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/HomePage.html</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>HomePage.html</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,123 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /Products.html</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/Products.html</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>Products.html</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,53 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /static/UserAccount.html</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/static/UserAccount.html</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p>'UserAccount.html' could not be found</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,49 @@ | ||
| <html lang = "en"> | ||
| <head> | ||
| <link rel="stylesheet" type="text/css" href="/static/project.css"/> | ||
| <title>HOME PAGE</title> | ||
|
|
||
| <p style = "letter-spacing:8px"> | ||
| <h3> | ||
| <a href="HomePage.html"> <img src = "/static/Bows.png" style = "vertical-align:middle" height="100" />BOWS AND BOTS</a> | ||
| <div style = "float:right; font-family: Helvetica"> | ||
| <form id="searchform" action="/register/" method="get" accept-charset="utf-8"> | ||
| <input type="text" placeholder="Search..." required> | ||
| <input type="button" value="Search"> | ||
| <form> | ||
| </div> | ||
| <!--<a href = "KellyWebsiteNew.html" style = "color: #2f4f4f;">HOME</a>--> | ||
| <a href="/static/UserAccount.html" style = "float:right; font-size:15px; padding:8px"> SIGN IN</a> | ||
|
|
||
| <a href="linkedin.com" style = "float:right; font-size:15px; padding: 8px"> CART</a> | ||
|
|
||
| <a href="/admin/index.html" style ="float:right; font-size:15px; padding:8px"> ADMIN</a> | ||
| </h3> | ||
| </p> | ||
|
|
||
| <line style = "letter-spacing:0px"> ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________</line> | ||
|
|
||
| <center><h1 style = "vertical-align:middle; letter-spacing: 25px"> HOME <h1></center> | ||
| <center> | ||
| <h1 style = "letter-spacing: 15px"> REGISTER FOR ACCOUNT </h1> | ||
| <h3> | ||
| <a href = /home/ >HOME</a> | ||
|
|
||
| <a href = { % url 'storeApp.views.contactPage' %}>CONTACT</a> | ||
| </h3> | ||
| </center> | ||
| <line style = "letter-spacing:0"> ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________</line> | ||
| </head> | ||
|
|
||
| <body> | ||
| <center> | ||
| <img class="img-circle" src="/static/itgirl.jpg" style="vertical-align:middle; padding:50px" height="300" /> | ||
| <h2 style="vertical-align:middle">Welcome to Bows & Bots</h2> | ||
| <p style="vertical-align:middle">A webstore dedicated to all female programmers out there. <br> | ||
| We have the best coding gear to showcase your love of what you do. <br> | ||
| Check out our shop <a href="Products.html">here</a>. | ||
| </p> | ||
| </center> | ||
| </body> | ||
|
|
||
| </html> |
| @@ -0,0 +1,123 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /UserAccount</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/UserAccount</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>UserAccount</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,123 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /UserAccount.html</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/UserAccount.html</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>UserAccount.html</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,256 @@ | ||
| <html lang="en"> | ||
| <head> | ||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
| <title>Page not found at /admin/index.html</title> | ||
| <meta name="robots" content="NONE,NOARCHIVE"> | ||
| <style type="text/css"> | ||
| html * { padding:0; margin:0; } | ||
| body * { padding:10px 20px; } | ||
| body * * { padding:0; } | ||
| body { font:small sans-serif; background:#eee; } | ||
| body>div { border-bottom:1px solid #ddd; } | ||
| h1 { font-weight:normal; margin-bottom:.4em; } | ||
| h1 span { font-size:60%; color:#666; font-weight:normal; } | ||
| table { border:none; border-collapse: collapse; width:100%; } | ||
| td, th { vertical-align:top; padding:2px 3px; } | ||
| th { width:12em; text-align:right; color:#666; padding-right:.5em; } | ||
| #info { background:#f6f6f6; } | ||
| #info ol { margin: 0.5em 4em; } | ||
| #info ol li { font-family: monospace; } | ||
| #summary { background: #ffc; } | ||
| #explanation { background:#eee; border-bottom: 0px none; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="summary"> | ||
| <h1>Page not found <span>(404)</span></h1> | ||
| <table class="meta"> | ||
| <tr> | ||
| <th>Request Method:</th> | ||
| <td>GET</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Request URL:</th> | ||
| <td>http://127.0.0.1:8000/admin/index.html</td> | ||
| </tr> | ||
|
|
||
| </table> | ||
| </div> | ||
| <div id="info"> | ||
|
|
||
| <p> | ||
| Using the URLconf defined in <code>StoreProject.urls</code>, | ||
| Django tried these URL patterns, in this order: | ||
| </p> | ||
| <ol> | ||
|
|
||
| <li> | ||
|
|
||
| ^$ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^index/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^$ | ||
| [name='index'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^login/$ | ||
| [name='login'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^logout/$ | ||
| [name='logout'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^password_change/$ | ||
| [name='password_change'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^password_change/done/$ | ||
| [name='password_change_done'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^jsi18n/$ | ||
| [name='jsi18n'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^r/(?P<content_type_id>\d+)/(?P<object_id>.+)/$ | ||
| [name='view_on_site'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^auth/user/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^storeApp/supplier/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^storeApp/user/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^auth/group/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^storeApp/order/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^storeApp/product/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^admin/ | ||
|
|
||
|
|
||
| ^(?P<app_label>auth|storeApp)/$ | ||
| [name='app_list'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^login/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^register/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^home/ | ||
| [name='home'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^account/ | ||
|
|
||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^products/ | ||
| [name='products'] | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| ^contact/ | ||
| [name='contact'] | ||
|
|
||
| </li> | ||
|
|
||
| </ol> | ||
| <p>The current URL, <code>admin/index.html</code>, didn't match any of these.</p> | ||
|
|
||
| </div> | ||
|
|
||
| <div id="explanation"> | ||
| <p> | ||
| You're seeing this error because you have <code>DEBUG = True</code> in | ||
| your Django settings file. Change that to <code>False</code>, and Django | ||
| will display a standard 404 page. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,57 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
|
|
||
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | ||
| <script type="text/javascript" src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/flurryplugin.js"></script> | ||
| <script type="text/javascript" src="assets/js/hometileplugin.js"></script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div data-role="dialog" id="confirmBlockDialog" > | ||
| <div data-role="header"> | ||
| <h1>Block User</h1> | ||
| </div> | ||
|
|
||
| <div data-role="content"> | ||
| <p><font color="#ffffff"> Are you sure you want to block this user from communicating with you?</font></p> | ||
| </div> | ||
| <div data-role="footer"> | ||
| <a onClick="closeDialog();" data-role="button" class="cssOverride">Cancel</a> | ||
| <a onClick="services.blockUser(); $.mobile.changePage('friends.html', {refreshPage: true});" style="float:right;" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" data-theme="a" class="ui-btn ui-shadow ui-btn-corner-all ui-btn-up-a"> | ||
| <span id="blockButton" class="ui-btn-inner ui-btn-corner-all" style="background-color: #ff0000;"> | ||
| <span class="ui-btn-text">Block</span> | ||
| </span> | ||
| </a> | ||
| </div> | ||
| <script type="text/javascript"> | ||
| $('document').ready(function(){ | ||
| // primary and secondary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='dialog']").css('background', primaryColor); | ||
| $("div[data-role='content']").css('background', primaryColor); | ||
|
|
||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $("div[data-role='header']").css('background', secondaryColor); | ||
| $("div[data-role='footer']").css('background', secondaryColor); | ||
| $('.cssOverride').css('background', secondaryColor); | ||
| }); | ||
|
|
||
| function closeDialog(){ | ||
| $('.ui-dialog').dialog('close'); | ||
| } | ||
| </script> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,139 @@ | ||
| <html> | ||
| <head></head> | ||
| <body> | ||
|
|
||
| <div data-role="dialog" id="camera"> | ||
| <div data-role="content" style="position: relative; margin-top: 250px"> | ||
| <img id="imh" /> | ||
| <button class="camButton" onclick="capturePhoto();">Take A Picture</button> | ||
| <button class="camButton" onclick="getPhoto();">Choose From Library</button> | ||
| <button class="camButton" onclick="navigation.profile();">Cancel</button> | ||
| </div> | ||
| <script> | ||
| var memID; | ||
| var pictureSource; // picture source | ||
| var destinationType; // sets the format of returned value | ||
|
|
||
| // Wait for Cordova to connect with the device | ||
| // | ||
| document.addEventListener("deviceready",onDeviceReady,false); | ||
|
|
||
| // Cordova is ready to be used! | ||
| // | ||
| function onDeviceReady() { | ||
|
|
||
| pictureSource=navigator.camera.PictureSourceType; | ||
| destinationType=navigator.camera.DestinationType; | ||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $('.camButton').css('background', secondaryColor); | ||
| } | ||
|
|
||
| function dataURItoBlob(dataURI) { | ||
| // convert base64 to raw binary data held in a string | ||
| // doesn't handle URLEncoded DataURIs | ||
| var byteString = atob(dataURI.split(',')[1]); | ||
|
|
||
| // separate out the mime component | ||
| var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0] | ||
|
|
||
| // write the bytes of the string to an ArrayBuffer | ||
| var ab = new ArrayBuffer(byteString.length); | ||
| var ia = new Uint8Array(ab); | ||
| for (var i = 0; i < byteString.length; i++) { | ||
| ia[i] = byteString.charCodeAt(i); | ||
| } | ||
|
|
||
| // write the ArrayBuffer to a blob, and you're done | ||
| var bb = new BlobBuilder(); | ||
| bb.append(ab); | ||
| return bb.getBlob(mimeString); | ||
| } | ||
|
|
||
| // Called when a photo is successfully retrieved | ||
| // | ||
| function cameraSuccess(imageURI) { | ||
| var memID = localStorage.getItem('gymMemberId'); | ||
| var options = new FileUploadOptions(); | ||
| options.fileName = imageURI.substr(imageURI.lastIndexOf('/') + 1); | ||
|
|
||
| var params = new Object(); | ||
| params.value1 = "test"; | ||
| params.value2 = "param"; | ||
|
|
||
| options.params = params; | ||
| options.chunkedMode = true; | ||
| var url = host+'/gymmembers/'; | ||
| var ft = new FileTransfer(); | ||
| ft.upload(imageURI, url + memID + "/picture", win, fail, options, true); | ||
| console.log('done uploading'); | ||
| navigation.profile(); | ||
| } | ||
|
|
||
| // Called when a photo is successfully retrieved | ||
| // | ||
| function onPhotoURISuccess(imageURI) { | ||
| // Uncomment to view the image file URI | ||
| // console.log(imageURI); | ||
|
|
||
| // Get image handle | ||
| // | ||
| var largeImage = document.getElementById('largeImage'); | ||
|
|
||
| // Unhide image elements | ||
| // | ||
| largeImage.style.display = 'block'; | ||
|
|
||
| // Show the captured photo | ||
| // The inline CSS rules are used to resize the image | ||
| // | ||
| largeImage.src = imageURI; | ||
| } | ||
|
|
||
| // A button will call this function | ||
| // | ||
| function capturePhoto() { | ||
| // Take picture using device camera and retrieve image as base64-encoded string | ||
| var popover = new CameraPopoverOptions(300,300,100,100,Camera.PopoverArrowDirection.ARROW_ANY); | ||
| navigator.camera.getPicture( | ||
| cameraSuccess, | ||
| null, | ||
| { | ||
| sourceType:1, | ||
| quality: 100, | ||
| allowEdit: false, | ||
| encodingType: 1, | ||
| targetWidth: 100, | ||
| targetHeight: 100, | ||
| popoverOptions : popover | ||
| } | ||
| ); | ||
| } | ||
|
|
||
| // A button will call this function | ||
| // | ||
| function getPhoto() { | ||
| // Retrieve image file location from specified source | ||
| navigator.camera.getPicture(cameraSuccess, null, { quality: 50, | ||
| destinationType: destinationType.FILE_URI, | ||
| sourceType : 0 , targetHeight: 100, targetWidth: 100}); | ||
| } | ||
|
|
||
| /** | ||
| * Helper function for PhoneGap's FileTransfer() | ||
| * see link above for description | ||
| */ | ||
| var win = function(r) { | ||
| console.log("Code = " + r.responseCode); | ||
| console.log("Response = " + r.response); | ||
| console.log("Sent = " + r.bytesSent); | ||
| } | ||
|
|
||
| var fail = function(error) { | ||
| console.log("An error has occurred: Code = " + error.code); | ||
| console.log("upload error source " + error.source); | ||
| console.log("upload error target " + error.target); | ||
| } | ||
| </script> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,72 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="assets/css/jquery.swipeButton.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | ||
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | ||
| <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> | ||
| <script src="assets/js/cordova-2.1.0.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.swipeButton.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/plist_parser.js"></script> | ||
| <script type="text/javascript" src="assets/js/oAuth.js"></script> | ||
| <script type="text/javascript" src="assets/js/ChildBrowser.js"></script> | ||
| <script type="text/javascript" src="assets/js/flurryplugin.js"></script> | ||
| <script type="text/javascript" src="assets/js/hometileplugin.js"></script> | ||
| <script type="text/javascript"> | ||
| jQuery.support.cors = true; | ||
| </script> | ||
| </head> | ||
| <body> | ||
| <div data-role="page" id="certifications-page"> | ||
| <div data-theme="a" data-role="header" data-position="fixed"> | ||
| <a href="#" data-role="button" data-rel="back" class="cssOverride" data-icon="arrow-l">Cancel</a> | ||
| <h1>My Certifications</h1> | ||
| <a onClick="services.updateMemberCertifications();" data-icon="check" data-theme="a" class="cssOverride">Save</a> | ||
| </div> | ||
| <div data-role="content" id='certifications'> | ||
| <div> | ||
| <a href="" data-transition="fade"> | ||
| </a> | ||
| </div> | ||
| <h3 class="checklist-title"> | ||
| Personal Trainer | ||
| </h3> | ||
| <div data-role="fieldcontain" class="checklist"> | ||
| <fieldset data-role="controlgroup" data-type="vertical" id="certifications-personal"> | ||
| </fieldset> | ||
| </div> | ||
| <h3 class="checklist-title certifications"> | ||
| Group Exercise Instructor | ||
| </h3> | ||
| <div data-role="fieldcontain" class="checklist"> | ||
| <fieldset data-role="controlgroup" data-type="vertical" id="certifications-group"> | ||
| </fieldset> | ||
| </div> | ||
| <a data-role="button" data-theme="a" onClick="services.updateMemberCertifications();" class="cssOverride"> | ||
| Save | ||
| </a> | ||
| </div> | ||
| <script type="text/javascript"> | ||
| $('document').ready(function(){ | ||
| // primary and secondary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='page']").css('background-color', primaryColor); | ||
| $("div[data-role='content']").css('background-color', primaryColor); | ||
|
|
||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $("div[data-role='header']").css('background', secondaryColor); | ||
| $('.cssOverride').css('background', secondaryColor); | ||
| }); | ||
| </script> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,151 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="assets/css/jquery.swipeButton.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
| <link rel="stylesheet" | ||
| href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | ||
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | ||
| <script | ||
| src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> | ||
| <script type="text/javascript" src="cordova-2.5.0.js"></script> | ||
| <script type="text/javascript" src="assets/js/back.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.swipeButton.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/plist_parser.js"></script> | ||
| <script type="text/javascript" src="assets/js/oAuth.js"></script> | ||
| <script type="text/javascript" src="assets/js/childbrowser.js"></script> | ||
| <script type="text/javascript"> | ||
| jQuery.support.cors = true; | ||
| jQuery.mobile.allowCrossDomainPages = true; | ||
| </script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div data-role="page" id="friend-profile"> | ||
|
|
||
| <div data-role="content"> | ||
| <div data-theme="a" data-role="header" data-position="fixed" | ||
| data-tap-toggle="false" > | ||
| <a data-role="button" data-rel="back" class="ui-btn-right cssOverride">Back</a> | ||
| </div> | ||
| <div style="height: 25px;"></div> | ||
| <!-- Logout Header --> | ||
| <div id="logoutDiv" data-role="none"> | ||
| <div id="fitFriendsIcon"> | ||
| <img src="assets/images/fit_friends_icon.png" /> | ||
| </div> | ||
| <div id="fitFriendsTitle" class="appText" >FIT FRIENDS</div> | ||
|
|
||
| <div id="logout" class="cssOverride" onclick="navigation.login();">LOG OUT</div> | ||
| <div class="clear" style="height: 5px;"></div> | ||
| </div> | ||
|
|
||
| <!-- <div id="friendProfilePicture" | ||
| style="width: 100px; height: 100px; position: relative; margin-top:30px; background-color: #fbfbfb; border: 1px solid #b8b8b8;">--> | ||
| <div id="friendProfilePictureDiv"> | ||
| <img src="assets/images/nopicture.png" alt="image" | ||
| id="friendProfilePicture" /> | ||
|
|
||
| <!-- style="position: absolute; top: 50%; left: 50%; margin-left: -16px; margin-top: -18px"--> | ||
| </div> | ||
| <div id="name" class="appText" >name</div> | ||
| <div id="friendAge" class="hideOverflow">Age:</div> | ||
| <div id="friendSex" class="hideOverflow"></div> | ||
|
|
||
| <div class="ui-grid-a"> | ||
| <div class="ui-block-a cssOverride" id="actionButton" style="width: auto !important;"> | ||
| <a onClick="launchChatWithUser()" | ||
| data-inline="true" style='color:white;'>MESSAGE</a> | ||
| </div> | ||
|
|
||
| <div class="ui-block-b cssOverride" id="actionButton" style="width: auto !important;"> | ||
| <a onclick="showConfirmDialog();" style='color:white;'>BLOCK</a> | ||
| </div> | ||
| <script> | ||
| function showConfirmDialog() { | ||
| $.mobile.changePage('blockDialog.html', 'pop'); | ||
| } | ||
| </script> | ||
| </div> | ||
| <div class="friendInfo spacing"> | ||
| <div class="friendInfoIcons"> | ||
| <img src="assets/images/fit_friends_icon.png" /> | ||
| </div> | ||
| <div class="friendInfoHeaders">INTERESTS:</div> | ||
| <div id="friendInterests" class="infoBody"></div> | ||
| </div> | ||
| <div class="friendInfo spacing"> | ||
| <div class="friendInfoIcons"> | ||
| <img src="assets/images/location_icon.png" /> | ||
| </div> | ||
| <div class="friendInfoHeaders">LOCATIONS:</div> | ||
| <div id="friendLocations" class="infoBody"></div> | ||
| </div> | ||
| <div class="friendInfo spacing"> | ||
| <div class="friendInfoIcons"> | ||
| <img src="assets/images/certification_icon.png" /> | ||
| </div> | ||
| <div class="friendInfoHeaders">CERTIFICATIONS:</div> | ||
| <div id="friendCertifications" class="infoBody"></div> | ||
| </div> | ||
|
|
||
| <script type="text/javascript"> | ||
| //disconnect from the current channel when the user clicks the back button | ||
| $('[data-rel="back"]').live('click',function disconnect(){ | ||
| //navigation.friends(); | ||
| }); | ||
| $('#friend-profile').bind('pageinit', function() { | ||
| services.getFriendByGymMemberId(); | ||
| }); | ||
|
|
||
| function launchChatWithUser() { | ||
| var name = $('#name').html(); | ||
| var friendId = localStorage.getItem("friendId"); | ||
| navigation.chat(friendId, name); | ||
| } | ||
|
|
||
| // Sets Brand Color for branded elements | ||
| $('document').ready(function(){ | ||
| // primary and secondary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='page']").css('background-color', primaryColor); | ||
| $("div[data-role='content']").css('background-color', primaryColor); | ||
|
|
||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $("div[data-role='header']").css('background-color', secondaryColor); | ||
| $('.navButton').css('background-color', secondaryColor); | ||
| $('.cssOverride').css('background', secondaryColor); | ||
|
|
||
| var color = localStorage.getItem('brandColor'); | ||
| var textColor = localStorage.getItem('textColor'); | ||
| var brandTextColor= localStorage.getItem('brandTextColor'); | ||
| $('.currentNavPage').css('background-color', color); | ||
| $('.currentNavPage').css('color', brandTextColor); | ||
| $('.friendInfoHeaders').css('color',textColor); | ||
| $('.appText').css('color',textColor); | ||
| $('.hideOverflow').css('color',textColor); | ||
|
|
||
| }); | ||
|
|
||
|
|
||
| </script> | ||
| </div> | ||
| <div id="navigation"> | ||
| <ul id="navlist"> | ||
| <li class="navButton " onClick="navigation.profile();">PROFILE</li> | ||
| <li class="navButton currentNavPage" onClick="navigation.friends();">FRIENDS</li> | ||
| <li class="navButton " onClick="navigation.messages()">MESSAGES</li> | ||
| </ul> | ||
|
|
||
| </div> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,89 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <!--meta name="viewport" content="width=device-width, initial-scale=1" /!--> | ||
| <meta name="viewport" content="initial-scale=1"> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="assets/css/jquery.swipeButton.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | ||
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | ||
| <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> | ||
| <script src="assets/js/cordova-2.1.0.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.swipeButton.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/plist_parser.js"></script> | ||
| <script type="text/javascript" src="assets/js/oAuth.js"></script> | ||
| <script type="text/javascript" src="assets/js/ChildBrowser.js"></script> | ||
| <script type="text/javascript" src="assets/js/PushToken.js"></script> | ||
| <script type="text/javascript" src="assets/js/flurryplugin.js"></script> | ||
| <script type="text/javascript" src="assets/js/hometileplugin.js"></script> | ||
| <script type="text/javascript"> | ||
|
|
||
| var host = "http://ec2-54-235-158-72.compute-1.amazonaws.com/fitFriendsService"; //Production Server | ||
| //var host = "http://ec2-23-20-168-176.compute-1.amazonaws.com/fitFriendsService"; //Remote server (test instance) | ||
| //var host = "http://localhost:8080/MiGym-FitFriends-Server"; //localserver | ||
|
|
||
| jQuery.support.cors = true; | ||
|
|
||
| //var channelPrefix = 'test1-'; | ||
| var pubnub; | ||
| var channelPrefix = 'chatChannel-'; | ||
| var chain = ''; | ||
| var gymName = ''; | ||
| var gymResultId = ''; | ||
| var debugging = false; | ||
| var testUser = null; | ||
| var oneGym='1'; | ||
|
|
||
|
|
||
| delegation.getLocations(); | ||
| delegation.getInterests(); | ||
| delegation.getCertifications(); | ||
| //login now executed from the FitFriendsStartViewController (webViewDidFinishLoad) | ||
| //to test from local browser execute test() | ||
| </script> | ||
|
|
||
| </head> | ||
| <body> | ||
| <div data-role="page" id="index_page"> | ||
| <div data-role="content"></div> | ||
| </div> | ||
| </body> | ||
| <!--div pub-key="pub-05ab5c0c-eff9-4cf8-ad95-39bec21f8a68" sub-key="sub-13d52a2e-098e-11e2-999b-7fc15b133917" ssl="off" origin="pubsub.pubnub.com" id="pubnub"></div--> | ||
| <script src="http://cdn.pubnub.com/pubnub-3.3.js"></script> | ||
| <script type="text/javascript"> | ||
|
|
||
| $('document').ready(function(){ | ||
| // primary and secondary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='page']").css('background-color', primaryColor); | ||
| $("div[data-role='content']").css('background-color', primaryColor); | ||
|
|
||
| // Brand Color | ||
| // var color = localStorage.getItem('brandColor'); | ||
| // var textColor = localStorage.getItem('textColor'); | ||
| // $('.currentNavPage').css('background-color', color); | ||
| // $('.currentNavPage').css('color', textColor); | ||
| }); | ||
|
|
||
| function test(){ | ||
| //host = "http://localhost:8080/MiGym-FitFriends-Server"; //localserver | ||
| host = "http://ec2-23-20-168-176.compute-1.amazonaws.com/fitFriendsService"; | ||
| debugging = true; | ||
| testUser = {"email":"pablobart@gmail.com","pictureURL":"https://graph.facebook.com/1124765305/picture?type=large","name":"Pablo Bartolome","gender":"male"}; | ||
| //user = {"email":"george.monical@gmail.com","pictureURL":"https://graph.facebook.com/508433693/picture?type=large","name":"George Monical","gender":"male"}; | ||
| //user = {"email":"205810531@twitter.id","pictureURL":"https://si0.twimg.com/profile_images/1316256188/20373_1217630317798_1140060092_30501953_2364006_n_normal.jpg","name":"John T."}; | ||
| //user = {"email":"pablobartolome@gmail.com","pictureURL":"http://m.c.lnkd.licdn.com/mpr/mpr/shrink_80_80/p/4/000/16f/1e8/3969bc1.jpg","name":"Pablo Bartolome Linkd","gender":"male"}; | ||
| //10000000 OYM | ||
| // 20000000 NOB hill Club-one | ||
| delegation.login(20000000); | ||
| } | ||
|
|
||
| </script> | ||
| </html> |
| @@ -0,0 +1,64 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="assets/css/jquery.swipeButton.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | ||
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | ||
| <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> | ||
| <script src="assets/js/cordova-2.1.0.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.swipeButton.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/plist_parser.js"></script> | ||
| <script type="text/javascript" src="assets/js/oAuth.js"></script> | ||
| <script type="text/javascript" src="assets/js/ChildBrowser.js"></script> | ||
| <script type="text/javascript" src="assets/js/flurryplugin.js"></script> | ||
| <script type="text/javascript" src="assets/js/hometileplugin.js"></script> | ||
| <script type="text/javascript"> | ||
| jQuery.support.cors = true; | ||
| </script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div data-role="page" id="page1" data-add-back-btn="true"> | ||
| <div data-theme="a" data-role="header" data-position="fixed"> | ||
| <a href="#" data-role="button" data-rel="back" data-icon="arrow-l" class="cssOverride">Cancel</a> | ||
| <h1>Interests</h1> | ||
| <a onclick="services.updateMemberInterests();" data-icon="check" data-theme="a" class="cssOverride">Save</a> | ||
| </div> | ||
| <div data-role="content"> | ||
| <div> | ||
| <a href="" data-transition="fade"> | ||
| </a> | ||
| </div> | ||
| <div data-role="fieldcontain" class="checklist"> | ||
| <fieldset data-role="controlgroup" data-type="vertical" id="interests"> | ||
| Loading.... | ||
| </fieldset> | ||
| </div> | ||
| <a data-role="button" data-transition="fade" data-theme="a" class="cssOverride" onclick="services.updateMemberInterests();"> | ||
| Save | ||
| </a> | ||
| </div> | ||
| <script type="text/javascript"> | ||
| $('document').ready(function(){ | ||
| // primary and secondary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='page']").css('background-color', primaryColor); | ||
| $("div[data-role='content']").css('background-color', primaryColor); | ||
|
|
||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $("div[data-role='header']").css('background', secondaryColor); | ||
| $('.cssOverride').css('background', secondaryColor); | ||
| }); | ||
| </script> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,63 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="assets/css/jquery.swipeButton.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | ||
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | ||
| <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> | ||
| <script src="assets/js/cordova-2.1.0.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.swipeButton.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/plist_parser.js"></script> | ||
| <script type="text/javascript" src="assets/js/oAuth.js"></script> | ||
| <script type="text/javascript" src="assets/js/ChildBrowser.js"></script> | ||
| <script type="text/javascript" src="assets/js/flurryplugin.js"></script> | ||
| <script type="text/javascript" src="assets/js/hometileplugin.js"></script> | ||
| <script type="text/javascript"> | ||
| jQuery.support.cors = true; | ||
| </script> | ||
| </head> | ||
| <body> | ||
| <div data-role="page" id="page4"> | ||
| <div data-theme="a" data-role="header" data-position="fixed"> | ||
| <a href="#" data-role="button" data-rel="back" data-icon="arrow-l" class="cssOverride">Cancel</a> | ||
| <h1>Locations</h1> | ||
| <a onClick="services.updateMemberLocations();" data-icon="check" class="cssOverride" data-theme="a">Save</a> | ||
| </div> | ||
| <div data-role="content"> | ||
| <div> | ||
| <a href="" data-transition="fade"> | ||
| </a> | ||
| </div> | ||
| <div data-role="fieldcontain" class="checklist"> | ||
| <fieldset data-role="controlgroup" data-type="vertical" id="locations"> | ||
| Loading.... | ||
| </fieldset> | ||
| </div> | ||
| <a data-role="button" data-theme="a" onClick="services.updateMemberLocations();" class="cssOverride"> | ||
| Save | ||
| </a> | ||
| </div> | ||
| <script type="text/javascript"> | ||
| $('document').ready(function(){ | ||
| // primary and secondary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='page']").css('background-color', primaryColor); | ||
| $("div[data-role='content']").css('background-color', primaryColor); | ||
|
|
||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $("div[data-role='header']").css('background', secondaryColor); | ||
| $('.cssOverride').css('background', secondaryColor); | ||
| }); | ||
| </script> | ||
| </div> | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,136 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="assets/css/jquery.swipeButton.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | ||
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | ||
| <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> | ||
| <script src="assets/js/cordova-2.1.0.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.swipeButton.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/plist_parser.js"></script> | ||
| <script type="text/javascript" src="assets/js/oAuth.js"></script> | ||
| <script type="text/javascript" src="assets/js/ChildBrowser.js"></script> | ||
| <script type="text/javascript" src="assets/js/flurryplugin.js"></script> | ||
| <script type="text/javascript" src="assets/js/hometileplugin.js"></script> | ||
| <!-- <script type="text/javascript" src="assets/js/NavigationBar.js"></script> --> | ||
| <script type="text/javascript"> | ||
| jQuery.support.cors = true; | ||
|
|
||
| // Use ChildBrowser instead of redirecting the main page. | ||
|
|
||
| /* | ||
| * Register a handler on the childbrowser that detects redirects and | ||
| * lets JSO to detect incomming OAuth responses and deal with the content. | ||
| */ | ||
| </script> | ||
|
|
||
| </head> | ||
| <body> | ||
| <div data-role="page" id="page2"> | ||
| <div ><br> | ||
|
|
||
| <div id="logo"> | ||
| <img src="assets/images/FitFriendsLargeLogo.png" alt="logo"/> | ||
| </div> | ||
| <div> | ||
| <img id="titleText" src="assets/images/WelcometoFitFriends.png" alt="logo"/> | ||
| </div> | ||
| <br><br> | ||
|
|
||
| <div style="position:absolute; left:50%; top:25%;"> | ||
| <div id="fitFriendsDisabledLabel" style="position: relative; left: -50%; top: -50%;"> | ||
|
|
||
| </div> | ||
| </div> | ||
| <div class="errors"> | ||
|
|
||
| </div> | ||
| <div style="margin-top:12%"> | ||
| <div id="loginButtons"> | ||
| <a data-role="button" data-transition="fade" id="facebook" class="oauth"> | ||
| LOG IN WITH FACEBOOK | ||
| </a> | ||
| <a data-role="button" class="oauth" data-transition="fade" id="twitter"> | ||
| LOG IN WITH TWITTER | ||
| </a> | ||
| <a data-role="button" data-transition="fade" id="google" class="oauth"> | ||
| LOG IN WITH GOOGLE | ||
| </a> | ||
| <a data-role="button" data-transition="fade" id="linkedin" class="oauth"> | ||
| LOG IN WITH LINKEDIN | ||
| </a> | ||
|
|
||
| </div> | ||
| </div> | ||
| </div> | ||
| <script> | ||
| $('document').ready(function(){ | ||
| // Primary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='page']").css('background', primaryColor); | ||
| $("div[data-role='content']").css('background', primaryColor); | ||
|
|
||
| // Secondary colors | ||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $('.oauth').css('background', secondaryColor); | ||
| }); | ||
| function showTermsDialog(){ | ||
| $.mobile.changePage('#termsDialog','pop',false,true); | ||
| } | ||
| </script> | ||
| </div> | ||
|
|
||
| <div data-role="dialog" id="termsDialog"> | ||
| <div data-role="header"> | ||
| <h1>User Agreement</h1> | ||
| </div> | ||
|
|
||
| <div data-role="content"> | ||
| If you agree to these terms you can use this app. | ||
| </div> | ||
| <div data-role="footer"> | ||
| <a onclick="closeDialog(), hideElements(), setRadioOff()" data-role="button">Cancel</a> | ||
| <a onclick="closeDialog(), showElements(), setRadioOn()" data-role="button">Agree</a> | ||
| </div> | ||
|
|
||
| <script type="text/javascript"> | ||
|
|
||
| $('#termsDialog').on("pagehide", setRadioOff()); | ||
|
|
||
| function showElements(){ | ||
| $('#fitFriendsDisabledLabel').hide(); | ||
| $('#membership').fadeIn('slow', function(){}); | ||
| $('#loginButtons').fadeIn('slow', function(){}); | ||
| } | ||
| function closeDialog(){ | ||
| $('.ui-dialog').dialog('close'); | ||
| } | ||
| function hideElements(){ | ||
| $('#membership').fadeOut('slow', function(){}); | ||
| $('#loginButtons').fadeOut('slow', function(){}); | ||
| $('#fitFriendsDisabledLabel').show(); | ||
| } | ||
|
|
||
| function setRadioOff(){ | ||
| $('#radioEnable').attr('checked', false).checkboxradio('refresh'); | ||
| $('#radioDisable').attr('checked', true).checkboxradio('refresh'); | ||
| } | ||
|
|
||
| function setRadioOn(){ | ||
| $('#radioEnable').attr('checked', true).checkboxradio('refresh'); | ||
| $('#radioDisable').attr('checked', false).checkboxradio('refresh'); | ||
| } | ||
| </script> | ||
| </div> | ||
| </body> | ||
|
|
||
| </html> |
| @@ -0,0 +1,297 @@ | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>Fit Friends</title> | ||
| <link rel="stylesheet" href="assets/css/jquery.swipeButton.css" /> | ||
| <link rel="stylesheet" href="assets/css/my.css" /> | ||
| <link rel="stylesheet" | ||
| href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | ||
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | ||
| <script | ||
| src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> | ||
| <script src="assets/js/cordova-2.1.0.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.swipeButton.js"></script> | ||
| <script type="text/javascript" src="assets/js/jquery.url.js"></script> | ||
| <script type="text/javascript" src="assets/js/services.js"></script> | ||
| <script type="text/javascript" src="assets/js/pageChanges.js"></script> | ||
| <script type="text/javascript" src="assets/js/navigation.js"></script> | ||
| <script type="text/javascript" src="assets/js/delegation.js"></script> | ||
| <script type="text/javascript" src="assets/js/util.js"></script> | ||
| <script type="text/javascript" src="assets/js/plist_parser.js"></script> | ||
| <script type="text/javascript" src="assets/js/oAuth.js"></script> | ||
| <script type="text/javascript" src="assets/js/ChildBrowser.js"></script> | ||
| <script type="text/javascript" src="assets/js/PushToken.js"></script> | ||
| <script type="text/javascript" src="assets/js/flurryplugin.js"></script> | ||
| <script type="text/javascript" src="assets/js/hometileplugin.js"></script> | ||
| <script type="text/javascript"> | ||
| jQuery.support.cors = true; | ||
| </script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div data-role="page" id="page5"> | ||
| <!-- CONTENT/List --> | ||
| <div data-role="content"> | ||
|
|
||
| <!-- Logout --> | ||
| <div id="logoutDiv" data-role="none"> | ||
| <div id="fitFriendsIcon"> | ||
| <img src="assets/images/FitFriendsIcon.png" /> | ||
| </div> | ||
| <div id="fitFriendsTitle">FIT FRIENDS</div> | ||
|
|
||
| <div id="logout" class="cssOverride" onclick="navigation.login();">LOG OUT</div> | ||
| <div class="clear" style="height: 5px;"></div> | ||
| </div> | ||
|
|
||
| <div id="recentMessagesHeader" >RECENT MESSAGES</div> | ||
|
|
||
| <!-- History List --> | ||
| <div id="history_content"> | ||
| <ul data-role="listview" id="history_chat_list"></ul> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- NAVIGATION --> | ||
| <div id="navigation"> | ||
| <ul id="navlist"> | ||
| <li class="navButton" onClick="navigation.profile();">PROFILE</li> | ||
| <li class="navButton" onClick="navigation.friends();">FRIENDS</li> | ||
| <li class="navButton currentNavPage">MESSAGES</li> | ||
| </ul> | ||
| </div> | ||
|
|
||
| <script type="text/javascript"> | ||
| var checkedChannels = []; | ||
| var blockedUsers = []; | ||
|
|
||
| $(document).ready(function(){ | ||
| //First we get the list of blocked users | ||
| getBlockedUsers(); | ||
|
|
||
| setBrandColors(); | ||
| } | ||
| ); | ||
|
|
||
| function setBrandColors() { | ||
| // primary and secondary colors | ||
| var primaryColor = localStorage.getItem('primaryColor'); | ||
| $("div[data-role='page']").css('background-color', primaryColor); | ||
| $("div[data-role='content']").css('background-color', primaryColor); | ||
| $('#history_chat_list').css('background-color', primaryColor); | ||
|
|
||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $('.navButton').css('background-color', secondaryColor); | ||
| $('.cssOverride').css('background-color', secondaryColor); | ||
|
|
||
|
|
||
| var color = localStorage.getItem('brandColor'); | ||
| var textColor = localStorage.getItem('textColor'); | ||
| $('.currentNavPage').css('background-color', color); | ||
| $('.currentNavPage').css('color', textColor); | ||
| } | ||
|
|
||
| function messagesHistory() { | ||
| console.log("defaultChannel " + localStorage.getItem('defaultChannel')); | ||
|
|
||
| pubnub.detailedHistory({ | ||
| count:100, | ||
| channel: localStorage.getItem("defaultChannel"), | ||
| callback:function (messages) { | ||
| getSubscribedChannelsInfo(messages[0]); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| function getBlockedUsers() { | ||
| console.log('getBlockedUsers'); | ||
| var gymMemberId = localStorage.getItem("gymMemberId"); | ||
| $.ajax({ | ||
| type: "GET", | ||
| dataType: "json", | ||
| url: host + "/block/" + gymMemberId, | ||
| beforeSend: function() { | ||
| $.mobile.loading( 'show' ); | ||
| }, | ||
| success: function(blockList) { | ||
| $.each(blockList, function() { | ||
| blockedUsers.push(this.gym_member2.toString()); | ||
| }); | ||
| }, | ||
| error: function(jqXHR, textStatus, errorThrown) { | ||
| console.log( "Error at getBlockedUsers..." + errorThrown ); | ||
| }, | ||
| complete: function() | ||
| { | ||
| console.log("getBlocked users"); | ||
| console.log(blockedUsers); | ||
| //Once the request is complete (success or fail) load the messagesHistory | ||
| messagesHistory(); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| function getSubscribedChannelsInfo(channels){ | ||
| console.log('channels'); | ||
| console.log(channels); | ||
|
|
||
| if (channels != null && channels.length > 0){ | ||
| for(var i=0;i<channels.length;i++){ | ||
| //check if we already have that channel on the list or the user is blocked | ||
| if (checkedChannels.indexOf(channels[i]['newChannel']) == -1 && | ||
| blockedUsers.indexOf(channels[i]['userid']) == -1 ){ | ||
| $.mobile.loading( 'show' ); | ||
| //reset the message's counter for that channel if is not set | ||
| if (localStorage.getItem(channels[i]['newChannel']) == null){ | ||
| localStorage.setItem(channels[i]['newChannel'], '0'); | ||
| } | ||
| //get the history of each channel | ||
| pubnub.detailedHistory({ | ||
| count:0, | ||
| channel: channels[i]['newChannel'], | ||
| callback:(function(i) { | ||
| return function(messages) { | ||
| updateChatList(channels[i], messages[0]); | ||
| $.mobile.loading( 'hide' ); | ||
| } | ||
| })(i) | ||
| }); | ||
| checkedChannels.push(channels[i]['newChannel']); | ||
| } | ||
| } | ||
| } else { | ||
| $('#history_chat_list').html("<li class='cssOverride'><h1>No Messages Found</h1></li>"); | ||
| $.mobile.loading( 'hide' ); | ||
| } | ||
|
|
||
| //In case the list of channels is not empty but we don't have any conversations (we have users blocked) | ||
| //if ($('#history_chat_list').is(':empty')){ | ||
| // $('#history_chat_list').html('<li><h1>No Messages Found</h1></li>'); | ||
| //} | ||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $('.cssOverride').css('background-color', secondaryColor); | ||
|
|
||
| $('#history_chat_list').listview('refresh'); | ||
| } | ||
|
|
||
| function updateChatList(channelData, messages) { | ||
| var count =0; | ||
| var html = "<li data-icon='false' class='cssOverride'><a onClick=\"openChat('%FRIENDID%','%GROUPNAME%','%GROUPID%');\">"+ | ||
| "<img id='%FRIENDID%' src='assets/images/nopicture.png' style='min-height: 50px;min-width: 50px; max-height: 60px; max-width:60px; padding-left: 10px; padding-top: 10px;'><img src='assets/images/whiteDisclosureIndicator.png' style='float:right; padding-top:18px;'>"+ | ||
| "<h1 style='color: white; text-shadow:none;'>%FULLNAME%</h1><p style='color: white; text-shadow:none;' class='ui-li-desc'>%LASTMESSAGE%</p>" + | ||
| "</a>"; | ||
| if((typeof channelData['flag']!='undefined')&&(channelData['flag'] == '1')){ | ||
| var name=channelData['fullName']; | ||
| var userName=localStorage.getItem("fullName"); | ||
| if(name.indexOf(userName+",") !== -1){ | ||
| name=name.replace(userName+",",""); | ||
|
|
||
| } else if(name.indexOf(","+userName) !== -1){ | ||
| name=name.replace(","+userName,""); | ||
| } | ||
| html = html.replace(/%FRIENDID%/g, channelData['newChannel']); | ||
| html = html.replace(/%FULLNAME%/g, name.split(',').join('<br/>')); | ||
| html = html.replace(/%GROUPID%/g, channelData['flag']); | ||
| html = html.replace(/%GROUPNAME%/g, name.replace(/'/g,'<>')); | ||
| html = html.replace(/%GROUPNAME%/g, name.replace(/"/g, '><')); | ||
| count = parseInt(localStorage.getItem(channelData['newChannel'])); | ||
|
|
||
| }else if ((typeof channelData['flag'] != 'undefined') | ||
| && (channelData['flag'] == '2')) { | ||
| var name = channelData['fullName']; | ||
| html = html.replace(/%FRIENDID%/g, | ||
| channelData['newChannel']); | ||
| html = html.replace(/%FULLNAME%/g, name.split(',').join( | ||
| '<br/>')); | ||
| html = html.replace(/%GROUPID%/g, channelData['flag']); | ||
| html = html.replace(/%GROUPNAME%/g, name | ||
| .replace(/'/g, '<>')); | ||
| html = html.replace(/%GROUPNAME%/g, name | ||
| .replace(/"/g, '><')); | ||
| count = parseInt(localStorage.getItem(channelData['newChannel'])); | ||
| }else{ | ||
| html = html.replace(/%FRIENDID%/g, channelData['userid']); | ||
| html = html.replace(/%FULLNAME%/g, channelData['fullName']); | ||
| html = html.replace(/%GROUPID%/g, 0); | ||
| html = html.replace(/%GROUPNAME%/g, channelData['fullName'].replace(/'/g,'<>')); | ||
| html = html.replace(/%GROUPNAME%/g, channelData['fullName'].replace(/"/g, '><')); | ||
| count = parseInt(localStorage.getItem(channelData['userid'])); | ||
| } | ||
| if(messages.length!='0' && typeof messages[messages.length -1]['text']!="undefined"){ | ||
| html = html.replace(/%LASTMESSAGE%/, messages[messages.length -1]['text']); | ||
| } else { | ||
| html = html.replace(/%LASTMESSAGE%/, ""); | ||
| } | ||
|
|
||
|
|
||
| //check if there's any unread message | ||
| // var | ||
| console.log("MESSAGES: " + messages.length); | ||
| console.log("-COUNT: " + count); | ||
| var diff = messages.length - count; | ||
| console.log("DIFFERENCE: " + diff); | ||
|
|
||
| //alert("message.length"+messages.length); | ||
| if (diff > 0) { | ||
| // html += "<span class='ui-li-count'>"+diff+"</span></li>"; | ||
| html += "</li>"; | ||
| } else { | ||
| html += '</li>'; | ||
| } | ||
| $('#history_chat_list').append(html); | ||
| services.getPictureByURL(channelData['userid']) | ||
| $('#history_chat_list').listview('refresh'); | ||
|
|
||
| var secondaryColor = localStorage.getItem('secondaryColor'); | ||
| $('.cssOverride').css('background-color', secondaryColor); | ||
| } | ||
|
|
||
| function openChat(ids,names,groupId){ | ||
| if(groupId == '1'){ | ||
| groupChat(ids,names); | ||
| }else if (groupId == '2') { | ||
| communityChat(ids, names); | ||
| }else{ | ||
| chat(ids,names); | ||
| } | ||
| FlurryPlugin.prototype.logEventwithSingleParam("Open a message notification"); | ||
| } | ||
|
|
||
| function chat(friendId,friendName){ | ||
| if(friendName.indexOf("<>") !== -1){ | ||
| friendName = groupName.replace(/<>/g,"'"); | ||
| } | ||
| if(friendName.indexOf("><") !== -1){ | ||
| friendName = groupName.replace(/></g,'"'); | ||
| } | ||
| navigation.chat(friendId, friendName); | ||
| } | ||
| function communityChat(ids, names) { | ||
| localStorage.setItem('communityChannel', ids); | ||
| if (ids.indexOf("chatChannel-") !== -1) { | ||
| ids = ids.replace("chatChannel-", ""); | ||
| } | ||
| localStorage.setItem("chatCommunity", ids); | ||
| navigation.communityChat(); | ||
| } | ||
|
|
||
| //method for strsting the group chat..... | ||
| function groupChat(groupId,groupName){ | ||
| if(groupName.indexOf("<>") !== -1){ | ||
| groupName = groupName.replace(/<>/g,"'"); | ||
| } | ||
| if(groupName.indexOf("><") !== -1){ | ||
| groupName = groupName.replace(/></g,'"'); | ||
| } | ||
| localStorage.setItem("nameArray", groupName); | ||
| localStorage.setItem("groupChannel",groupId); | ||
|
|
||
| navigation.groupChat(); | ||
| } | ||
|
|
||
| </script> | ||
|
|
||
| </div> | ||
| </body> | ||
| </html> |