From 60e86d8be94281d06d5327d6dad46b98e5df6a62 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 31 Oct 2014 16:53:44 -0400 Subject: enabling mobile routes --- public/assets/javascripts/ui/_router.js | 12 ++++++++++++ public/assets/test/intersect2.html | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'public') diff --git a/public/assets/javascripts/ui/_router.js b/public/assets/javascripts/ui/_router.js index 0c95664..d5a8e7f 100644 --- a/public/assets/javascripts/ui/_router.js +++ b/public/assets/javascripts/ui/_router.js @@ -18,6 +18,7 @@ var SiteRouter = Router.extend({ routes: { "/": 'home', + "/home": 'home', "/login": 'signin', "/signup": 'signup', @@ -45,7 +46,16 @@ var SiteRouter = Router.extend({ mobileRoutes: { "/": 'home', "/home": 'home', + "/login": 'signin', + "/signup": 'signup', + "/auth/usernameTaken": 'usernameTaken', + "/auth/password": 'passwordReset', + "/auth/forgotPassword": 'passwordForgot', + "/profile": 'profile', + "/profile/edit": 'editProfile', + "/profile/:name": 'profile', + "/project/:name": 'projectViewer', }, @@ -63,10 +73,12 @@ var SiteRouter = Router.extend({ this.route() + /* if (is_mobile) { $(".topLinks").hide() $(".share").hide() } + */ $("body").removeClass("loading") }, diff --git a/public/assets/test/intersect2.html b/public/assets/test/intersect2.html index fade288..3df9f30 100644 --- a/public/assets/test/intersect2.html +++ b/public/assets/test/intersect2.html @@ -55,7 +55,7 @@ var rect_room = new Room({ id: "rect", rect: rect, height: 2 }) var east_room = new Room({ id: "east", rect: east, height: 2 }) var corner_room = new Room({ id: "corner", rect: corner, height: 2 }) var peninsula_room = new Room({ id: "peninsula", rect: peninsula, height: 3 }) -var peninsula2_room = new Room({ id: "peninsula2", rect: peninsula2, height: 3 }) +var peninsula2_room = new Room({ id: "peninsula2", rect: peninsula2, height: 1 }) Rooms.add( rect_room ) Rooms.add( east_room ) -- cgit v1.2.3-70-g09d2 From 9a27ee2450fc718c23712a4c9dc63b5dd3b4e405 Mon Sep 17 00:00:00 2001 From: ryderr Date: Fri, 31 Oct 2014 16:57:08 -0400 Subject: mobile video --- public/assets/stylesheets/app.css | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'public') diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css index ef49350..ce0c1cc 100755 --- a/public/assets/stylesheets/app.css +++ b/public/assets/stylesheets/app.css @@ -842,9 +842,6 @@ border-left: 1px solid black; margin: 0; } -.templates span.active { - border:1px solid #017cfe; -} .clear:after { visibility: hidden; @@ -2632,7 +2629,15 @@ a[data-role="forgot-password"] { width: 70px; height: 37px; } - + .video { + width: 100%!important; + height: auto!important; + } + .video iframe { + width: 100%!important; + height: auto!important; + margin-top: 0!important; + } .topLinks a { padding: 12px 8px; color: black; @@ -2701,7 +2706,7 @@ a[data-role="forgot-password"] { } .projectList.about { text-align: center; - padding: 20px 0; + padding: 0px 0; } .projectList.about .item .rap { padding: 0; @@ -2717,7 +2722,7 @@ a[data-role="forgot-password"] { .projectList.about .item span:nth-child(1) { width: 100%; border-radius: 0; - height: 150px; + height: 160px; } .projectList.about .item span:nth-child(2) { width: 100%; @@ -2743,7 +2748,7 @@ a[data-role="forgot-password"] { } .projectList .room { width: 100%; - height: 260px; + height: 280px; } .aboutRoom { width: 170px; -- cgit v1.2.3-70-g09d2 From 9da91f0d5447248ec77576d9dc6d66090790ae67 Mon Sep 17 00:00:00 2001 From: ryderr Date: Fri, 31 Oct 2014 17:06:17 -0400 Subject: stylez --- public/assets/stylesheets/app.css | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'public') diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css index ce0c1cc..ab867a4 100755 --- a/public/assets/stylesheets/app.css +++ b/public/assets/stylesheets/app.css @@ -327,6 +327,7 @@ h5 { text-align: left; border-top: 1px solid; padding:10% 0; + margin-bottom:20px; } .projectList.about .item{ @@ -2691,10 +2692,7 @@ a[data-role="forgot-password"] { height: 180px; width: 50%; } - .profilepage .bio h2 { - font-weight: 300; - font-size: 30px; - } + .profilePic { width: 50%; height: 180px; @@ -2704,6 +2702,10 @@ a[data-role="forgot-password"] { font-weight: 500; font-size: 17px; } + .page .projectList label { + font-weight:600; + border:0; + } .projectList.about { text-align: center; padding: 0px 0; @@ -2737,7 +2739,7 @@ a[data-role="forgot-password"] { padding: 18px 0; } .footer a, .footer span { - margin: 9px; + margin: 4px; } #keyhint { display:none; @@ -2749,6 +2751,12 @@ a[data-role="forgot-password"] { .projectList .room { width: 100%; height: 280px; + margin: 0; + } + .mediaDrawer form h2 { + margin-bottom: 26px; + width: 100%; + text-align: left; } .aboutRoom { width: 170px; -- cgit v1.2.3-70-g09d2 From d8f0fc6831c37be90d8dcdce3dd080fee55e908d Mon Sep 17 00:00:00 2001 From: ryderr Date: Fri, 31 Oct 2014 17:42:29 -0400 Subject: more mobile ish --- public/assets/stylesheets/app.css | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'public') diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css index ab867a4..6e42050 100755 --- a/public/assets/stylesheets/app.css +++ b/public/assets/stylesheets/app.css @@ -302,6 +302,7 @@ h5 { .page { text-align:center; + background:#f9f9f9; } .page.profile { @@ -750,6 +751,11 @@ iframe.embed { font-weight: 300; float: left; clear: both; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: inline-block; } .profilepage .bio span:last-of-type:after { display: none; } @@ -1154,7 +1160,7 @@ border-left: 1px solid black; } .fixed::-webkit-scrollbar { - width: 3px; + width: 3px; } .fixed::-webkit-scrollbar-track { @@ -2691,6 +2697,8 @@ a[data-role="forgot-password"] { .profilepage .bio { height: 180px; width: 50%; + display: inline-block; + padding-top: 20px; } .profilePic { @@ -2698,9 +2706,19 @@ a[data-role="forgot-password"] { height: 180px; } .profilepage .about h2 { - text-align: center; - font-weight: 500; - font-size: 17px; + display:none; + } + .profilepage .projectList.about:after { + content:"In order to create a room in VValls you need to use a desktop or laptop computer.. Its totally worth though!"; + margin:20px 0 10px 0; + font-size:22px; + display:inline-block; + width:100%; + padding:10px; + line-height: 34px; + } + .bio .holder { + display: inline-block; } .page .projectList label { font-weight:600; @@ -2769,6 +2787,9 @@ a[data-role="forgot-password"] { .aboutRoom h1 a, .aboutRoom h1 { font-size: 16px; } + .footer { + padding:50px 0 120px 0; + } } @media screen and (orientation:portrait) { -- cgit v1.2.3-70-g09d2 From f08fd6f6910d6cc774051ef9f85307ac8557d740 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 31 Oct 2014 18:51:20 -0400 Subject: intersect3 putting this to rest --- .../javascripts/rectangles/models/surface.js | 7 + public/assets/test/intersect3.html | 230 +++++++++++++++++++++ 2 files changed, 237 insertions(+) create mode 100644 public/assets/test/intersect3.html (limited to 'public') diff --git a/public/assets/javascripts/rectangles/models/surface.js b/public/assets/javascripts/rectangles/models/surface.js index fc4aae4..f031665 100644 --- a/public/assets/javascripts/rectangles/models/surface.js +++ b/public/assets/javascripts/rectangles/models/surface.js @@ -12,6 +12,7 @@ var Surface = function (face){ this.bounds = new Rect (new vec2(0, 0), new vec2(0, 0)) + this.vec = new Rect (new vec2(0, 0), new vec2(0, 0)) this.faces = [] if (face) { this.add(face) @@ -161,6 +162,12 @@ return this.faces[i] } } + if (x < this.faces[0].x.a) { + return this.faces[0] + } + else { + return this.faces[this.faces.length-1] + } return null } diff --git a/public/assets/test/intersect3.html b/public/assets/test/intersect3.html new file mode 100644 index 0000000..4fec891 --- /dev/null +++ b/public/assets/test/intersect3.html @@ -0,0 +1,230 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2