From 3bc775d14521250d70bf6c4ca02806b6a9f79346 Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Sun, 13 Sep 2015 23:21:10 -0400
Subject: [PATCH] url checks

---
 js/lattice/Lattice.js |  7 +++++++
 js/plists/PList.js    | 15 +++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/js/lattice/Lattice.js b/js/lattice/Lattice.js
index 01badda6..4ccd04a1 100644
--- a/js/lattice/Lattice.js
+++ b/js/lattice/Lattice.js
@@ -29,6 +29,8 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
 
         __initialize: function(){
 
+            this._checkURL();
+
             this.listenTo(this, "change:partType", this._updatePartType);
             this.listenTo(this, "change:cellType change:connectionType change:latticeType", function(){
                 this._updateLatticeConfig();//pass no params
@@ -42,6 +44,11 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
             this._updateLatticeConfig();
         },
 
+        _checkURL: function(){
+            var path = window.location.path;
+//            console.log(path);
+        },
+
 
 
 
diff --git a/js/plists/PList.js b/js/plists/PList.js
index 8bd35101..fd489591 100644
--- a/js/plists/PList.js
+++ b/js/plists/PList.js
@@ -88,6 +88,21 @@ define(['three'], function(THREE){
             }
         },
 
+        urls: {
+            dnabricks: {
+                cellType: "cube",
+                connectionType: "gik",
+                latticeType: "willGik",
+                partType: null
+            },
+            electronics: {
+                cellType: "cube",
+                connectionType: "gik",
+                latticeType: "dnaBricks",
+                partType: null
+            }
+        },
+
         allLattices:{
             octa: {
                 name: "Octahedron",
-- 
GitLab