Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added mailer.. though php doesn't seem to work

  • Loading branch information...
commit 60728aa3f10fe9e5a82e2dab28945883ab6f203f 1 parent 873a815
@electronicwhisper authored
Showing with 19 additions and 4 deletions.
  1. +10 −1 index.html
  2. +9 −3 js/app.js
View
11 index.html
@@ -18,7 +18,7 @@
<div class="footer">
<div class="menu">
<a href="#scan">Scan Another Loci QR Code</a>
- <a href="#list">What You Have Learned So Far</a>
+ <a href="#list">Review Your Path</a>
<!-- <a href="yourMap.html">Your Map</a> -->
<a href="#about">About Loci</a>
</div>
@@ -77,6 +77,7 @@ <h2 class="head">{{ name }}</h2>
<script id="list" type="text/html">
+<h2 class="head">Review Your Path</h2>
{{#associations}}
<div class="menu">
<a href="#project={{projectID}}">
@@ -89,6 +90,14 @@ <h2 class="head">{{ name }}</h2>
</a>
</div>
{{/associations}}
+<h2 class="head">Send Your Path To Your Email</h2>
+<div class="content">
+ <form method="get" action="http://locimind.com/ITPmobile/mail.php">
+ <input type="hidden" name="path" value="{{path}}" />
+ Email: <input type="text" name="email" size="40" />
+ <button type="submit">Send</button>
+ </form>
+</div>
</script>
View
12 js/app.js
@@ -14,9 +14,12 @@ var projects = getProjects();
function addProject(project) {
if (projects.indexOf(project) === -1) { // only add it if it's not already in the projects list
projects.push(project);
- cookie.set("projects", JSON.stringify(projects), {expires: 1000}); // expire 1000 days from now
+ setProjects(projects);
}
}
+function setProjects(projects) {
+ cookie.set("projects", JSON.stringify(projects), {expires: 1000}); // expire 1000 days from now
+}
@@ -58,7 +61,10 @@ function loadPage() {
$("#content").append(presidentHTML);
}
-
+ } else if (hash.substr(0, 5) === "path=") {
+ projects = hash.substr(5).split(",").map(function (x) {return parseInt(x, 10);});
+ setProjects(projects);
+ location.hash = "list";
} else if (hash === "list") {
var associations = projects.map(function (project, i) {
return {
@@ -68,7 +74,7 @@ function loadPage() {
};
});
- var html = ich.list({associations: associations});
+ var html = ich.list({associations: associations, path: projects.join(",")});
$("#content").append(html);
Please sign in to comment.
Something went wrong with that request. Please try again.