From a76c8331165c7fae7df4b6cc4bb5c1c093263f13 Mon Sep 17 00:00:00 2001
From: Roland Studer
Date: Mon, 30 Jan 2017 17:03:56 +0100
Subject: [PATCH] wider input field
---
forwarder.js | 14 ++++----------
index.html | 7 +------
style.css | 6 +++++-
3 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/forwarder.js b/forwarder.js
index 3e1fea0..7e88e62 100644
--- a/forwarder.js
+++ b/forwarder.js
@@ -6,6 +6,7 @@ if (Meteor.isClient) {
before: function(){
var url = Urls.findOne().url;
if (!(typeof url == "undefined")) {
+ document.write("forwarding");
setTimeout(function() { window.location.replace(url); }, 2000);
}
else {
@@ -18,15 +19,7 @@ if (Meteor.isClient) {
this.render('home');
});
- // Router.route('/forward', function(){
- // this.render('home');
- // // before: function(){
- // // var url = Urls.findOne().url;
- // // window.location.replace(url);
- // // };
- // });
-
- Template.url.helpers({
+ Template.home.helpers({
url: function () {
return Urls.findOne().url;
}
@@ -44,6 +37,7 @@ if (Meteor.isClient) {
if (Meteor.isServer) {
Meteor.startup(function () {
// code to run on server at startup
- Urls.insert({});
+ Urls.remove({});
+ Urls.insert({url: "http://"});
});
}
diff --git a/index.html b/index.html
index 97a8942..5a94e2f 100644
--- a/index.html
+++ b/index.html
@@ -24,11 +24,10 @@
Share this url to all devices in the Open Device Lab Bern!
- {{> url}}
@@ -36,10 +35,6 @@
Share this url to all devices in the Open Device Lab Bern!
-
-
-
-
Forwarding...
diff --git a/style.css b/style.css
index 49d7dcc..c814895 100644
--- a/style.css
+++ b/style.css
@@ -21,8 +21,12 @@ h1 {
input {
font-size: 1.5em;
+ border: none;
+ border-bottom: 1px solid #ccc;
+ width: 80%;
+ text-align: center;
}
a, a:visited, a:active{
color:#798c1f;
-}
\ No newline at end of file
+}