1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2025-10-24 01:07:35 +02:00

Added static resources used when exiting the application

Signed-off-by: Giulio Cesare Solaroli <giulio.cesare@clipperz.com>
This commit is contained in:
Giulio Cesare Solaroli
2012-03-03 17:03:57 -05:00
parent 7804333809
commit cf9c0c34e1
25 changed files with 4383 additions and 4350 deletions

View File

@@ -25,38 +25,30 @@ refer to http://www.clipperz.com.
//
// normal.js
// normal
// New Image
//
// Created by Giulio Cesare Solaroli on 3/25/10
// Copyright 2010 Clipperz
// Created by Giulio Cesare Solaroli on 2/13/12
// Copyright 2012 Clipperz
// This code was generated by Opacity. You may use or modify it in any way.
//
var kClipperz_PM_UI_Canvas_Logo_normalWidth = 150.0;
var kClipperz_PM_UI_Canvas_Logo_normalHeight = 39.0;
function Clipperz_PM_UI_Canvas_Logo_normal(canvas, aMainColor, aSecondaryColor)
function Clipperz_PM_UI_Canvas_Logo_normal(canvas, logo, fontSize, text_color)
{
var context = canvas.getContext("2d");
var string;
canvas.width = kClipperz_PM_UI_Canvas_Logo_normalWidth;
canvas.height = kClipperz_PM_UI_Canvas_Logo_normalHeight;
context.save();
context.scale(canvas.width / kClipperz_PM_UI_Canvas_Logo_normalWidth, canvas.height / kClipperz_PM_UI_Canvas_Logo_normalHeight);
context.clearRect(0.0, 0.0, kClipperz_PM_UI_Canvas_Logo_normalWidth, kClipperz_PM_UI_Canvas_Logo_normalHeight);
// clipper…
string = "clipper";
context.font = "38.0pt Helvetica-Bold";
context.fillStyle = aMainColor;
context.fillText(string, -9.0, -9.0);
// …z
string = "z";
context.font = "38.0pt Helvetica-Bold";
context.fillStyle = aSecondaryColor;
context.fillText(string, 125.0, -9.0);
context.font = fontSize + " HelveticaNeue-Bold";
context.fillStyle = text_color;
context.fillText(logo, 3, 30);
context.restore();
}

View File

@@ -51,7 +51,7 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.PageFooter, Clipperz.PM.UI.Co
{tag:'div', cls:'footerContent', children:[
// {tag:'div', cls:'footerStarIcon'},
{tag:'canvas', id:this.getId('footerStarIcon'), cls:'footerStarIcon'},
{tag:'span', cls:'copyright', html:'Copyright &copy; 2009 Clipperz Srl'},
{tag:'span', cls:'copyright', html:'Copyright &copy; 2009-2012 Clipperz Srl'},
{tag:'a', href:'http://www.clipperz.com/terms_of_service', target:'_blank', html:'terms of service'},
{tag:'a', href:'http://www.clipperz.com/privacy_policy', target:'_blank', html:'privacy policy'},
{tag:'span', cls:'applicationVersion', html:'application version: [1992]'}

View File

@@ -68,8 +68,11 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.PageHeader, Clipperz.PM.UI.Co
]}
]},
{tag:'div', id:'logoFrame', children:[
{tag:'a', href:'http://www.clipperz.com', target:'_blank', children:[{tag:'div', id:'logo'}]},
{tag:'h5', cls:'clipperzPayoff', html:'keep it to yourself!'}
{tag:'a', href:'http://www.clipperz.com', target:'_blank', children:[
// {tag:'h1', cls:'logo', html:"clipperz"},
{tag:'canvas', id:this.getId('logo'), cls:'logo'},
{tag:'h5', cls:'clipperzPayoff', html:"keep it to yourself!"}
]}
]},
{tag:'div', id:'news', cls:'hidden', children:[
// {tag:'div', cls:'close', children:[
@@ -78,7 +81,9 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.PageHeader, Clipperz.PM.UI.Co
{tag:'div', id:'newsframe', children:[
{tag:'iframe', id:this.getId('iframe'), src:this.iframeURL()}
]},
{tag:'div', id:this.getId('newsGrip'), cls:'grip', children:[]}
{tag:'div', id:this.getId('newsGrip'), cls:'grip', children:[
{tag:'div', cls:'gripHandler', children:[]}
]}
]},
{tag:'div', id:'featureTabs', children:[
{tag:'table', children:[{tag:'tr', children:[
@@ -97,6 +102,7 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.PageHeader, Clipperz.PM.UI.Co
MochiKit.Signal.connect(this.getElement('newsGrip'), 'onclick', this, 'toggleTips');
MochiKit.Signal.connect(this.getElement('iframe'), 'onload', this, 'handleIframeDidLoad');
this.setLogoDefaultColors();
},
//-------------------------------------------------------------------------
@@ -164,6 +170,10 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.PageHeader, Clipperz.PM.UI.Co
this.toggleNewsIsOpen();
}
},
'setLogoDefaultColors': function () {
Clipperz.PM.UI.Canvas.logo.normal(this.getElement('logo'), "clipperz", "28.0pt", "#ffffff");
},
//-------------------------------------------------------------------------

View File

@@ -51,15 +51,10 @@ function run() {
var shouldShowRegistrationForm;
var useCompactDesign;
var controllerParameters;
// var iPhoneDesign;
// MochiKit.Signal.connect(document.body, 'onkeydown', _pm_logEvent);
// MochiKit.Signal.connect(document.body, 'onkeypress', _pm_logEvent);
// MochiKit.Signal.connect(document.body, 'onclick', _pm_logEvent);
controllerParameters = {};
MochiKit.DOM.removeElement('javaScriptAlert');
// MochiKit.DOM.removeElement('javaScriptAlert');
Clipperz.PM.Strings.Languages.initSetup();
if (window.location.search.indexOf('registration') != -1) {
@@ -72,12 +67,6 @@ function run() {
controllerParameters['autocomplete'] = 'on'
}
// if ((window.location.search.indexOf('iPhone') != -1) || (navigator.userAgent.match('iPhone'))) {
// iPhoneDesign = true;
// } else {
// iPhoneDesign = false;
// }
if (window.location.search.indexOf('compact') != -1) {
useCompactDesign = true;
} else {
@@ -86,8 +75,6 @@ function run() {
if (useCompactDesign == true) {
Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Compact.Controllers.MainController(controllerParameters);
// } else if (iPhoneDesign == true) {
// Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.iPhone.Controllers.MainController();
} else {
Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Web.Controllers.MainController(controllerParameters);
}