From 394a264ca9c0d59248285dd762527d0b9e7f5855 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 17 Nov 2014 12:43:15 +0000 Subject: [PATCH] Trial bar added to login/setup screen --- lib/ice-coder.css | 4 ++++ lib/login.php | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/ice-coder.css b/lib/ice-coder.css index 8b9c040..baf55e3 100644 --- a/lib/ice-coder.css +++ b/lib/ice-coder.css @@ -151,6 +151,10 @@ h2 {font-size: 18px; font-weight: normal; color: #fff} .screenContainer .screenVCenter {#position: absolute; display: table-cell; #top: 50%; vertical-align: middle; text-align: center} .screenVCenter .screenCenter {#position: relative; #top: -50%; text-align: center; display: inline} .screenCenter .version {position: relative; display: block; margin: 5px 0 15px 0; font-size: 10px; color: #bbb} +.screenCenter .trialBarContainer {display: inline-block; width: 170px; height: 8px; color: #bbb; background: #0b0b0b; text-align: right; margin-bottom: 40px} +.screenCenter .trialBarRemaining {display: inline-block; height: 8px; background: rgba(0,198,255,0.7); box-shadow: 0 0 10px 1px rgba(0,198,255,0.7)} +.screenCenter .trialBarText {text-align: center} +.screenCenter .trialBarText a {color: #fff; text-decoration: none} .screenCenter .text {position: relative; display: block; margin-top: 15px; font-size: 10px; color: #888} .screenCenter .text input {margin-top: 1px} .screenCenter .text a {position: relative; display: block; margin-top: 15px; font-size: 10px; color: #888; text-decoration: none} diff --git a/lib/login.php b/lib/login.php index 2a29844..47356bd 100644 --- a/lib/login.php +++ b/lib/login.php @@ -25,11 +25,23 @@ echo $ICEcoder["password"] == "" && !$ICEcoder["multiUser"] ? "Setup" : "Login";
ICEcoder
v
+ + +
$tPeriod) {$tRemaining = $tPeriod;}; + $tRemainingPerc = number_format($tRemaining/$tPeriod,2); + $tDaysRemaining = intval($tRemaining/(60*60*24)); + ?>

+
days left ">Unlock now
+
+ +
-

Thanks for trialling ICEcoder!

The trial period has now ended, please donate on the website to continue using it.

+

Thanks for trialling ICEcoder!

Please donate on the website to continue using it.

Step 1: Donate



Donate $5


Step 2: Enter email address & code