@ -0,0 +1,16 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<widget xmlns="http://www.w3.org/ns/widgets" |
||||
xmlns:ub="http://uniboard.mnemis.com/widgets" |
||||
id="http://uniboard.mnemis.com/widgets/webbrowser" |
||||
version="1.1" |
||||
width="920" |
||||
height="400" |
||||
ub:resizable="true"> |
||||
|
||||
<name>Choisir</name> |
||||
<author href="http://www.getuniboard.com" |
||||
email="info@mnemis.com">Mnemis SA</author> |
||||
<description>Choisir widget</description> |
||||
|
||||
<content src="index.html"/> |
||||
</widget> |
@ -0,0 +1,377 @@ |
||||
html, body{ |
||||
width: 100%; |
||||
height: 100%; |
||||
margin: 0; |
||||
padding: 0; |
||||
border-radius: 50px; |
||||
} |
||||
|
||||
body{ |
||||
background-image: url(../images/bg.png); |
||||
} |
||||
|
||||
.toggleButton, .addButton{ |
||||
width: 20px; |
||||
height: 28px; |
||||
border: none; |
||||
background-image: url(../images/greySquare.png); |
||||
font-weight: bold; |
||||
font-family: Verdana; |
||||
color: yellow; |
||||
cursor: pointer; |
||||
-webkit-border-top-left-radius: 5px; |
||||
-webkit-border-bottom-left-radius: 5px; |
||||
border-top-left-radius: 5px; |
||||
border-bottom-left-radius: 5px; |
||||
} |
||||
|
||||
.buttonDiv, .addButtonDiv{ |
||||
position: fixed; |
||||
float: right; |
||||
z-index: 1; |
||||
} |
||||
|
||||
.addButtonDiv{ |
||||
display: none; |
||||
} |
||||
|
||||
.leftDiv{ |
||||
width: 50%; |
||||
height: 100%; |
||||
float: left; |
||||
background-color: black; |
||||
-webkit-border-top-left-radius: 7px; |
||||
-webkit-border-bottom-left-radius: 7px; |
||||
border-top-left-radius: 7px; |
||||
border-bottom-left-radius: 7px; |
||||
} |
||||
|
||||
.rightDiv{ |
||||
width: 50%; |
||||
height: 100%; |
||||
float: right; |
||||
background-color: yellow; |
||||
-webkit-border-top-right-radius: 7px; |
||||
-webkit-border-bottom-right-radius: 7px; |
||||
border-top-right-radius: 7px; |
||||
border-bottom-right-radius: 7px; |
||||
} |
||||
|
||||
.shadowDiv{ |
||||
width: 100%; |
||||
display: none; |
||||
opacity: 0.7; |
||||
background-color: black; |
||||
-webkit-border-radius: 3px; |
||||
-webkit-border-radius: 3px; |
||||
border-radius: 3px; |
||||
border-radius: 3px; |
||||
z-index: 100; |
||||
} |
||||
|
||||
.popupBack{ |
||||
width: 360px; |
||||
height: 138px; |
||||
position: absolute; |
||||
background-image: url(../images/popupBack.png); |
||||
background-repeat: repeat; |
||||
-webkit-border-radius: 10px; |
||||
-webkit-border-radius: 10px; |
||||
border-radius: 10px; |
||||
border-radius: 10px; |
||||
display: none; |
||||
z-index: 500; |
||||
} |
||||
|
||||
.popupContainers{ |
||||
float: left; |
||||
width: 98%; |
||||
height: 36px; |
||||
padding: 5px 3px 5px 0; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
.popupLabels{ |
||||
color: yellow; |
||||
margin: 0 5px; |
||||
} |
||||
|
||||
.expresionInput{ |
||||
float: right; |
||||
width: 70%; |
||||
border: none; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
background-color: #ffc; |
||||
-webkit-border-radius: 5px; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
border-radius: 5px; |
||||
} |
||||
|
||||
.popupButtons{ |
||||
float: right; |
||||
width: 74px; |
||||
height: 28px; |
||||
margin: 4px 5px; |
||||
border: none; |
||||
background-image: url(../images/greySquare2.png); |
||||
font-family: Verdana; |
||||
color: yellow; |
||||
cursor: pointer; |
||||
-webkit-border-radius: 5px; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
border-radius: 5px; |
||||
} |
||||
|
||||
.readyTask{ |
||||
margin: 2px; |
||||
padding: 2px; |
||||
width: 100%; |
||||
height: 100%; |
||||
overflow: hidden; |
||||
z-index: 100; |
||||
} |
||||
|
||||
.taskContainer{ |
||||
width: 96%; |
||||
padding: 2px; |
||||
float: left; |
||||
text-align: center; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
font-weight: bold; |
||||
} |
||||
|
||||
.editContainer{ |
||||
position: absolute; |
||||
border: 5px solid #c7c7c7; |
||||
-webkit-border-radius: 5px; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
border-radius: 5px; |
||||
} |
||||
|
||||
.closeItem{ |
||||
width: 30px; |
||||
height: 30px; |
||||
position: absolute; |
||||
background-image: url(../images/icon-close.png); |
||||
right: -15px; |
||||
top: -15px; |
||||
} |
||||
|
||||
.rightResize{ |
||||
width: 10px; |
||||
height: 65%; |
||||
cursor: e-resize; |
||||
position: absolute; |
||||
background: none; |
||||
right: -10px; |
||||
top: 20%; |
||||
} |
||||
|
||||
.bottomResize{ |
||||
width: 65%; |
||||
height: 10px; |
||||
cursor: n-resize; |
||||
position: absolute; |
||||
background: none; |
||||
bottom: -10px; |
||||
left: 20%; |
||||
} |
||||
|
||||
/*new design*/ |
||||
|
||||
.body_table{ |
||||
width: 100%; |
||||
height: 100%; |
||||
border-spacing: 0; |
||||
} |
||||
|
||||
.selected{ |
||||
|
||||
} |
||||
|
||||
/*top*/ |
||||
|
||||
.b_top_left{ |
||||
width: 54px; |
||||
background-image: url(../images/top_left.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_top_right{ |
||||
width: 54px; |
||||
background-image: url(../images/top_right.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_top_center{ |
||||
height: 54px; |
||||
background-image: url(../images/top.png); |
||||
background-repeat: repeat-x; |
||||
} |
||||
|
||||
/*bottom*/ |
||||
|
||||
.b_bottom_left{ |
||||
width: 54px; |
||||
background-image: url(../images/bottom_left.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_bottom_right{ |
||||
width: 54px; |
||||
background-image: url(../images/bottom_right.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_bottom_center{ |
||||
background-image: url(../images/bottom.png); |
||||
background-repeat: repeat-x; |
||||
} |
||||
|
||||
/*center*/ |
||||
|
||||
.b_center_left{ |
||||
width: 54px; |
||||
background-image: url(../images/left.png); |
||||
background-repeat: repeat-y; |
||||
} |
||||
|
||||
.b_center_right{ |
||||
width: 54px; |
||||
background-image: url(../images/right.png); |
||||
background-repeat: repeat-y; |
||||
} |
||||
|
||||
#data{ |
||||
width: 100%; |
||||
height: 100%; |
||||
min-height: 250px; |
||||
overflow: auto; |
||||
} |
||||
|
||||
#wgt_name{ |
||||
height: 44px; |
||||
width: 200px; |
||||
margin: 10px 10px 0 10px; |
||||
padding: 0; |
||||
float: left; |
||||
font-family: "Lobster13Regular"; |
||||
font-size: 24px; |
||||
color: #8c5730; |
||||
} |
||||
|
||||
#wgt_reload, #wgt_edit, #wgt_display,#wgt_add{ |
||||
cursor: pointer; |
||||
width: 95px; |
||||
height: 44px; |
||||
margin: 10px 10px 0 0; |
||||
float: right; |
||||
font-family: "Lobster13Regular"; |
||||
font-size: 24px; |
||||
color: #8c5730; |
||||
} |
||||
|
||||
#wgt_display{ |
||||
width: 100px; |
||||
padding-left: 40px; |
||||
background-image: url(../images/slate-edit.png); |
||||
background-repeat: no-repeat; |
||||
background-position: top 0; |
||||
display: none; |
||||
} |
||||
|
||||
#wgt_edit{ |
||||
width: 100px; |
||||
padding-left: 40px; |
||||
background-image: url(../images/slate-edit.png); |
||||
background-repeat: no-repeat; |
||||
background-position: top 0; |
||||
} |
||||
|
||||
#wgt_reload{ |
||||
padding-left: 40px; |
||||
background-image: url(../images/slate-toolbar-reload.png); |
||||
background-repeat: no-repeat; |
||||
background-position: top 0; |
||||
} |
||||
|
||||
#wgt_add{ |
||||
padding-left: 40px; |
||||
background-image: url(../images/plus.png); |
||||
background-repeat: no-repeat; |
||||
background-position: top 0; |
||||
display: none; |
||||
} |
||||
|
||||
.style_select{ |
||||
width: 120px; |
||||
font-family: "Lobster13Regular"; |
||||
font-size: 24px; |
||||
float: right; |
||||
margin: 10px 20px 0 0; |
||||
border-radius: 10px; |
||||
background-image: url(../images/ar_down.png); |
||||
background-color: #d4aa79; |
||||
color: #8c5730; |
||||
background-position: 105px 11px; |
||||
background-repeat: no-repeat; |
||||
-webkit-appearance: menulist-text; |
||||
display: none; |
||||
} |
||||
|
||||
.btl_pad{ |
||||
background-image: url(../images/pad-top-left.png) !important; |
||||
} |
||||
|
||||
.btc_pad{ |
||||
background-image: url(../images/pad-top.png) !important; |
||||
} |
||||
|
||||
.btr_pad{ |
||||
background-image: url(../images/pad-top-right.png) !important; |
||||
} |
||||
|
||||
.bcl_pad{ |
||||
background-image: url(../images/pad-left.png) !important; |
||||
} |
||||
|
||||
.bcr_pad{ |
||||
background-image: url(../images/pad-right.png) !important; |
||||
} |
||||
|
||||
.bbl_pad{ |
||||
background-image: url(../images/pad-bottom-left.png) !important; |
||||
} |
||||
|
||||
.bbc_pad{ |
||||
background-image: url(../images/pad-bottom.png) !important; |
||||
} |
||||
|
||||
.bbr_pad{ |
||||
background-image: url(../images/pad-bottom-right.png) !important; |
||||
} |
||||
|
||||
.pad_color{ |
||||
color: white !important; |
||||
} |
||||
|
||||
.pad_reload{ |
||||
background-image: url(../images/slate-toolbar-reload-white.png) !important; |
||||
} |
||||
|
||||
.pad_edit{ |
||||
background-image: url(../images/slate-display.png) !important; |
||||
} |
||||
|
||||
.pad_add{ |
||||
background-image: url(../images/plus-white.png) !important; |
||||
} |
||||
|
||||
.pad_select{ |
||||
background-color: black !important; |
||||
color: white !important; |
||||
background-image: url(../images/ar_down_white.png) !important; |
||||
} |
After Width: | Height: | Size: 165 KiB |
@ -0,0 +1,91 @@ |
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1. |
||||
This license is copied below, and is also available with a FAQ at: |
||||
http://scripts.sil.org/OFL |
||||
|
||||
|
||||
----------------------------------------------------------- |
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 |
||||
----------------------------------------------------------- |
||||
|
||||
PREAMBLE |
||||
The goals of the Open Font License (OFL) are to stimulate worldwide |
||||
development of collaborative font projects, to support the font creation |
||||
efforts of academic and linguistic communities, and to provide a free and |
||||
open framework in which fonts may be shared and improved in partnership |
||||
with others. |
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and |
||||
redistributed freely as long as they are not sold by themselves. The |
||||
fonts, including any derivative works, can be bundled, embedded, |
||||
redistributed and/or sold with any software provided that any reserved |
||||
names are not used by derivative works. The fonts and derivatives, |
||||
however, cannot be released under any other type of license. The |
||||
requirement for fonts to remain under this license does not apply |
||||
to any document created using the fonts or their derivatives. |
||||
|
||||
DEFINITIONS |
||||
"Font Software" refers to the set of files released by the Copyright |
||||
Holder(s) under this license and clearly marked as such. This may |
||||
include source files, build scripts and documentation. |
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the |
||||
copyright statement(s). |
||||
|
||||
"Original Version" refers to the collection of Font Software components as |
||||
distributed by the Copyright Holder(s). |
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting, |
||||
or substituting -- in part or in whole -- any of the components of the |
||||
Original Version, by changing formats or by porting the Font Software to a |
||||
new environment. |
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical |
||||
writer or other person who contributed to the Font Software. |
||||
|
||||
PERMISSION & CONDITIONS |
||||
Permission is hereby granted, free of charge, to any person obtaining |
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify, |
||||
redistribute, and sell modified and unmodified copies of the Font |
||||
Software, subject to the following conditions: |
||||
|
||||
1) Neither the Font Software nor any of its individual components, |
||||
in Original or Modified Versions, may be sold by itself. |
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled, |
||||
redistributed and/or sold with any software, provided that each copy |
||||
contains the above copyright notice and this license. These can be |
||||
included either as stand-alone text files, human-readable headers or |
||||
in the appropriate machine-readable metadata fields within text or |
||||
binary files as long as those fields can be easily viewed by the user. |
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font |
||||
Name(s) unless explicit written permission is granted by the corresponding |
||||
Copyright Holder. This restriction only applies to the primary font name as |
||||
presented to the users. |
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font |
||||
Software shall not be used to promote, endorse or advertise any |
||||
Modified Version, except to acknowledge the contribution(s) of the |
||||
Copyright Holder(s) and the Author(s) or with their explicit written |
||||
permission. |
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole, |
||||
must be distributed entirely under this license, and must not be |
||||
distributed under any other license. The requirement for fonts to |
||||
remain under this license does not apply to any document created |
||||
using the Font Software. |
||||
|
||||
TERMINATION |
||||
This license becomes null and void if any of the above conditions are |
||||
not met. |
||||
|
||||
DISCLAIMER |
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF |
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT |
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE |
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL |
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM |
||||
OTHER DEALINGS IN THE FONT SOFTWARE. |
@ -0,0 +1,33 @@ |
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
||||
|
||||
<title>Font Face Demo</title> |
||||
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8"> |
||||
<style type="text/css" media="screen"> |
||||
h1.fontface {font: 60px/68px 'Lobster13Regular', Arial, sans-serif;letter-spacing: 0;} |
||||
|
||||
p.style1 {font: 18px/27px 'Lobster13Regular', Arial, sans-serif;} |
||||
|
||||
#container { |
||||
width: 800px; |
||||
margin-left: auto; |
||||
margin-right: auto; |
||||
} |
||||
</style> |
||||
</head> |
||||
|
||||
<body> |
||||
<div id="container"> |
||||
<h1 class="fontface">Font-face Demo for the Lobster Font</h1> |
||||
|
||||
|
||||
|
||||
<p class="style1">Lobster Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,16 @@ |
||||
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 26, 2012 06:03:05 AM America/New_York */ |
||||
|
||||
|
||||
|
||||
@font-face { |
||||
font-family: 'Lobster13Regular'; |
||||
src: url('Lobster_1.3-webfont.eot'); |
||||
src: url('Lobster_1.3-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('Lobster_1.3-webfont.woff') format('woff'), |
||||
url('Lobster_1.3-webfont.ttf') format('truetype'), |
||||
url('Lobster_1.3-webfont.svg#Lobster13Regular') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 95 KiB |
@ -0,0 +1,32 @@ |
||||
By downloading this font package you agree to the following terms |
||||
of use: |
||||
|
||||
- This FONT PACKAGE is freeware. |
||||
|
||||
- This FONT PACKAGE may be distributed ONLY via the Internet for |
||||
FREE. Under NO circumstances may this FONT PACKAGE be sold for |
||||
a profit nor be included as part of another product or CD-ROM |
||||
compilation. If you wish to include this FONT PACKAGE for FREE |
||||
distribution on your Web Site, please include all of the fonts |
||||
and original documentation supplied with this FONT PACKAGE. |
||||
|
||||
- You may install and use this FONT PACKAGE on an unlimited |
||||
amount of machines. |
||||
|
||||
- You may NOT rename, edit, or create any alternate variations of |
||||
the fonts included in this FONT PACKAGE. |
||||
|
||||
- This FONT PACKAGE comes "as is" with NO warranty whatsoever. |
||||
SHYFONTS accepts NO responsibility for any damages or loss of |
||||
any kind due to the use of this FONT PACKAGE. The use of this |
||||
FONT PACKAGE is solely your responsibility -- you use this FONT |
||||
PACKAGE at your own risk. |
||||
|
||||
- Enjoy the fonts! |
||||
|
||||
If you have any question regarding this document or the usage of |
||||
this font package, feel free to contact us at info@shyfonts.com. |
||||
Thank you for downloading this font package and enjoy! |
||||
|
||||
------------------------------------------------------------------------ |
||||
©2001 ShyFonts Type Foundry -- http://www.shyfonts.com |
@ -0,0 +1,58 @@ |
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
||||
|
||||
<title>Font Face Demo</title> |
||||
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8"> |
||||
<style type="text/css" media="screen"> |
||||
h1.fontface {font: 60px/68px 'SFToontimeRegular', Arial, sans-serif;letter-spacing: 0;} |
||||
|
||||
p.style1 {font: 18px/27px 'SFToontimeRegular', Arial, sans-serif;} |
||||
p.style2 {font: 18px/27px 'SFToontimeItalic', Arial, sans-serif;} |
||||
p.style3 {font: 18px/27px 'SFToontimeBold', Arial, sans-serif;} |
||||
p.style4 {font: 18px/27px 'SFToontimeBoldItalic', Arial, sans-serif;} |
||||
p.style5 {font: 18px/27px 'SFToontimeBlotchRegular', Arial, sans-serif;} |
||||
p.style6 {font: 18px/27px 'SFToontimeBlotchItalic', Arial, sans-serif;} |
||||
|
||||
#container { |
||||
width: 800px; |
||||
margin-left: auto; |
||||
margin-right: auto; |
||||
} |
||||
</style> |
||||
</head> |
||||
|
||||
<body> |
||||
<div id="container"> |
||||
<h1 class="fontface">FONT-FACE DEMO FOR THE TOONTIME FONT</h1> |
||||
|
||||
|
||||
|
||||
<p class="style1">SF Toontime Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
|
||||
|
||||
<p class="style2">SF Toontime Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
|
||||
|
||||
<p class="style3">SF Toontime Bold - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
|
||||
|
||||
<p class="style4">SF Toontime Bold Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
|
||||
|
||||
<p class="style5">SF Toontime Blotch Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
|
||||
|
||||
<p class="style6">SF Toontime Blotch Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,76 @@ |
||||
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 26, 2012 04:36:35 PM America/New_York */ |
||||
|
||||
|
||||
|
||||
@font-face { |
||||
font-family: 'SFToontimeRegular'; |
||||
src: url('SF_Toontime-webfont.eot'); |
||||
src: url('SF_Toontime-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('SF_Toontime-webfont.woff') format('woff'), |
||||
url('SF_Toontime-webfont.ttf') format('truetype'), |
||||
url('SF_Toontime-webfont.svg#SFToontimeRegular') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
||||
@font-face { |
||||
font-family: 'SFToontimeItalic'; |
||||
src: url('SF_Toontime_Italic-webfont.eot'); |
||||
src: url('SF_Toontime_Italic-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('SF_Toontime_Italic-webfont.woff') format('woff'), |
||||
url('SF_Toontime_Italic-webfont.ttf') format('truetype'), |
||||
url('SF_Toontime_Italic-webfont.svg#SFToontimeItalic') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
||||
@font-face { |
||||
font-family: 'SFToontimeBold'; |
||||
src: url('SF_Toontime_Bold-webfont.eot'); |
||||
src: url('SF_Toontime_Bold-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('SF_Toontime_Bold-webfont.woff') format('woff'), |
||||
url('SF_Toontime_Bold-webfont.ttf') format('truetype'), |
||||
url('SF_Toontime_Bold-webfont.svg#SFToontimeBold') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
||||
@font-face { |
||||
font-family: 'SFToontimeBoldItalic'; |
||||
src: url('SF_Toontime_Bold_Italic-webfont.eot'); |
||||
src: url('SF_Toontime_Bold_Italic-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('SF_Toontime_Bold_Italic-webfont.woff') format('woff'), |
||||
url('SF_Toontime_Bold_Italic-webfont.ttf') format('truetype'), |
||||
url('SF_Toontime_Bold_Italic-webfont.svg#SFToontimeBoldItalic') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
||||
@font-face { |
||||
font-family: 'SFToontimeBlotchRegular'; |
||||
src: url('SF_Toontime_Blotch-webfont.eot'); |
||||
src: url('SF_Toontime_Blotch-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('SF_Toontime_Blotch-webfont.woff') format('woff'), |
||||
url('SF_Toontime_Blotch-webfont.ttf') format('truetype'), |
||||
url('SF_Toontime_Blotch-webfont.svg#SFToontimeBlotchRegular') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
||||
@font-face { |
||||
font-family: 'SFToontimeBlotchItalic'; |
||||
src: url('SF_Toontime_Blotch_Italic-webfont.eot'); |
||||
src: url('SF_Toontime_Blotch_Italic-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('SF_Toontime_Blotch_Italic-webfont.woff') format('woff'), |
||||
url('SF_Toontime_Blotch_Italic-webfont.ttf') format('truetype'), |
||||
url('SF_Toontime_Blotch_Italic-webfont.svg#SFToontimeBlotchItalic') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 529 B |
After Width: | Height: | Size: 142 B |
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 451 B |
After Width: | Height: | Size: 214 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 180 B |
After Width: | Height: | Size: 170 B |
After Width: | Height: | Size: 168 B |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 176 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 861 B |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 5.6 KiB |
@ -0,0 +1,79 @@ |
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<title></title> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||
<link rel="stylesheet" type="text/css" href="css/basic.css"/> |
||||
<link rel="stylesheet" href="css/fonts/Lobster/stylesheet.css"> |
||||
<link rel="stylesheet" href="css/fonts/SF-Toontime/stylesheet.css"> |
||||
<script type="text/javascript" src="scripts/jquery-1.6.2.min.js"></script> |
||||
<script src="scripts/jquery.disable.text.select.js" type="text/javascript"></script> |
||||
<script type="text/javascript" src="scripts/blackYellow.js"></script> |
||||
<script type="text/javascript"> |
||||
|
||||
$(document).ready(function(){ |
||||
var lang = ""; //locale language |
||||
if(window.sankore){ |
||||
lang = sankore.locale().substr(0,2); |
||||
} else |
||||
lang = "en"; |
||||
if(lang == "en") |
||||
init(); |
||||
else{ |
||||
returnStatus(lang); |
||||
} |
||||
|
||||
function returnStatus(lang){ |
||||
$.ajax({ |
||||
type: 'POST', |
||||
url:'locales/' + lang + '/index.html', |
||||
statusCode: { |
||||
404: function() { |
||||
init(); |
||||
}, |
||||
200: function(){ |
||||
window.location.href = 'locales/' + lang + '/index.html'; |
||||
} |
||||
} |
||||
}); |
||||
} |
||||
}); |
||||
|
||||
</script> |
||||
</head> |
||||
<body> |
||||
<table class="body_table" cellpadding=0 cellspacing=0> |
||||
<tr style="height: 54px;"> |
||||
<td class="b_top_left"> </td> |
||||
<td class="b_top_center"> |
||||
<div id="wgt_name"></div> |
||||
<div id="wgt_reload"></div> |
||||
<div id="wgt_display" class="selected"></div> |
||||
<div id="wgt_edit"></div> |
||||
<div id="wgt_add"></div> |
||||
<select class="style_select"> |
||||
<option value="1"></option> |
||||
<option value="2"></option> |
||||
</select> |
||||
</td> |
||||
<td class="b_top_right"> </td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td class="b_center_left"> </td> |
||||
<td> |
||||
<div id="data"> |
||||
|
||||
</div> |
||||
</td> |
||||
<td class="b_center_right"> </td> |
||||
</tr> |
||||
|
||||
<tr style="height: 54px;"> |
||||
<td class="b_bottom_left"> </td> |
||||
<td class="b_bottom_center"> </td> |
||||
<td class="b_bottom_right"> </td> |
||||
</tr> |
||||
</table> |
||||
</body> |
||||
</html> |
@ -0,0 +1,59 @@ |
||||
<!-- |
||||
To change this template, choose Tools | Templates |
||||
and open the template in the editor. |
||||
--> |
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<title></title> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||
<link rel="stylesheet" type="text/css" href="../../css/basic.css"/> |
||||
<link rel="stylesheet" href="../../css/fonts/Lobster/stylesheet.css"> |
||||
<link rel="stylesheet" href="../../css/fonts/SF-Toontime/stylesheet.css"> |
||||
<script type="text/javascript" src="../../scripts/jquery-1.6.2.min.js"></script> |
||||
<script src="../../scripts/jquery.disable.text.select.js" type="text/javascript"></script> |
||||
<script type="text/javascript" src="scripts/blackYellow.js"></script> |
||||
<script type="text/javascript"> |
||||
|
||||
$(document).ready(function(){ |
||||
init(); |
||||
}); |
||||
|
||||
</script> |
||||
</head> |
||||
<body> |
||||
<table class="body_table" cellpadding=0 cellspacing=0> |
||||
<tr style="height: 54px;"> |
||||
<td class="b_top_left"> </td> |
||||
<td class="b_top_center"> |
||||
<div id="wgt_name"></div> |
||||
<div id="wgt_reload"></div> |
||||
<div id="wgt_display" class="selected"></div> |
||||
<div id="wgt_edit"></div> |
||||
<div id="wgt_add"></div> |
||||
<select class="style_select"> |
||||
<option value="1"></option> |
||||
<option value="2"></option> |
||||
</select> |
||||
</td> |
||||
<td class="b_top_right"> </td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td class="b_center_left"> </td> |
||||
<td> |
||||
<div id="data"> |
||||
|
||||
</div> |
||||
</td> |
||||
<td class="b_center_right"> </td> |
||||
</tr> |
||||
|
||||
<tr style="height: 54px;"> |
||||
<td class="b_bottom_left"> </td> |
||||
<td class="b_bottom_center"> </td> |
||||
<td class="b_bottom_right"> </td> |
||||
</tr> |
||||
</table> |
||||
</body> |
||||
</html> |
@ -0,0 +1,412 @@ |
||||
/* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation, either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
var sankoreLang = { |
||||
display: "Afficher",
|
||||
edit: "Modifier",
|
||||
add: "Ajouter",
|
||||
enter_data: "Saisir la donnée:",
|
||||
enter_result: "Saisir le résultat:",
|
||||
ok: "Accepter",
|
||||
cancel: "Annuler", |
||||
wgt_name: "Noir/jaune", |
||||
reload: "Recharger", |
||||
slate: "Bois", |
||||
pad: "Pad" |
||||
}; |
||||
function init(){ |
||||
|
||||
//variables
|
||||
var toggleFlag = false; // detects toggling in toggle button
|
||||
var endFlag = false; // ending of toggling in toggle button
|
||||
var addToggleStart = false; // detects toggling in add button
|
||||
var addToggleEnd = false; // ending of toggling in add button
|
||||
var shadowOver = false; |
||||
var mode = false; |
||||
var popupFlag = false |
||||
var flagForSelect = false; |
||||
var dragElement = null; //the element that must be dragging
|
||||
var lang = ""; //locale language
|
||||
var coords = { |
||||
left:0, |
||||
top:0 |
||||
} |
||||
|
||||
var resizeObj = { |
||||
y:false, |
||||
x:false, |
||||
width:0, |
||||
height:0 |
||||
} |
||||
|
||||
var opacityChanged = false; |
||||
|
||||
$("#wgt_display").text(sankoreLang.display); |
||||
$("#wgt_edit").text(sankoreLang.edit); |
||||
$("#wgt_add").text(sankoreLang.add); |
||||
$("#wgt_name").text(sankoreLang.wgt_name); |
||||
$("#wgt_reload").text(sankoreLang.reload); |
||||
$(".style_select option[value='1']").text(sankoreLang.slate); |
||||
$(".style_select option[value='2']").text(sankoreLang.pad); |
||||
|
||||
if(window.sankore){ |
||||
if(sankore.preference("blackYellowData","")){ |
||||
var importArray = jQuery.parseJSON(sankore.preference("blackYellowData","")); |
||||
for(var i in importArray){ |
||||
var tmpReadyTask = $("<div class='readyTask'>"); |
||||
var exprContainer = $("<div class='taskContainer' style='color: yellow;'>" + importArray[i].data1 + "</div>").appendTo(tmpReadyTask); |
||||
var resContainer = $("<div class='taskContainer' style='color: black;'>"+ importArray[i].data2 + "</div>").appendTo(tmpReadyTask); |
||||
tmpReadyTask.width(importArray[i].width) |
||||
.height(importArray[i].height) |
||||
.css("position","absolute") |
||||
.css("top",importArray[i].top) |
||||
.css("left",importArray[i].left);
|
||||
tmpReadyTask.appendTo("#data"); |
||||
}
|
||||
} |
||||
$(document).disableTextSelect(); |
||||
} |
||||
|
||||
/* ------------- BUTTONS -------------*/ |
||||
|
||||
if(sankore.preference("by_style","")){ |
||||
changeStyle(sankore.preference("by_style","")); |
||||
$(".style_select").val(sankore.preference("by_style","")); |
||||
} else |
||||
changeStyle(1) |
||||
|
||||
$("#wgt_display, #wgt_edit").click(function(event){ |
||||
if(this.id == "wgt_display"){ |
||||
if(!$(this).hasClass("selected")){
|
||||
$(this).addClass("selected"); |
||||
$("#wgt_edit").removeClass("selected"); |
||||
$(".style_select").css("display","none");
|
||||
$(this).css("display", "none"); |
||||
$("#wgt_add").css("display", "none"); |
||||
$("#wgt_edit").css("display", "block"); |
||||
mode = false; |
||||
$(".leftDiv, .rightDiv").animate({ |
||||
"opacity":"1" |
||||
},"slow",function(){ |
||||
if(opacityChanged){ |
||||
if($(".editContainer").size() != 0){ |
||||
$(".editContainer").each(function(index, domElem){ |
||||
var tmpReadyTask = $(domElem).find(".readyTask"); |
||||
tmpReadyTask.width($(domElem).width()) |
||||
.height($(domElem).height()) |
||||
.css("position","absolute") |
||||
.css("top",$(domElem).position().top) |
||||
.css("left",$(domElem).position().left) |
||||
.find(".taskContainer").removeAttr("contenteditable");
|
||||
|
||||
$(domElem).remove(); |
||||
tmpReadyTask.appendTo("#data"); |
||||
}); |
||||
} |
||||
opacityChanged = false; |
||||
} |
||||
}); |
||||
$(document).disableTextSelect();
|
||||
} |
||||
} else {
|
||||
if(!$(this).hasClass("selected")){ |
||||
$(this).addClass("selected"); |
||||
$("#wgt_display").removeClass("selected"); |
||||
$(".style_select").css("display","block");
|
||||
$(this).css("display", "none"); |
||||
$("#wgt_add").css("display", "block"); |
||||
$("#wgt_display").css("display", "block"); |
||||
mode = true;
|
||||
$(document).enableTextSelect();
|
||||
$(".leftDiv, .rightDiv").animate({ |
||||
"opacity":"0.4" |
||||
},"slow",function(){ |
||||
if(!opacityChanged){ |
||||
if($(".readyTask").size() != 0){ |
||||
$(".readyTask").each(function(index, domElem){
|
||||
var editContent = $("<div class='editContainer'>").width($(domElem).width() + 10).height($(domElem) + 10).appendTo("#data"); |
||||
var closeItem = $("<div class='closeItem'>").appendTo(editContent); |
||||
var rightResize = $("<div class='rightResize'>").appendTo(editContent); |
||||
var bottomResize = $("<div class='bottomResize'>").appendTo(editContent); |
||||
editContent.css("top", $(domElem).position().top).css("left", $(domElem).position().left); |
||||
$(domElem).css("position","static") |
||||
.width("100%") |
||||
.height("100%") |
||||
.find(".taskContainer").attr("contenteditable", "true"); |
||||
$(domElem).appendTo(editContent); |
||||
}); |
||||
} |
||||
opacityChanged = true; |
||||
} |
||||
}); |
||||
} |
||||
} |
||||
}); |
||||
|
||||
$("#wgt_reload").click(function(){ |
||||
window.location.reload(); |
||||
}); |
||||
|
||||
$("#wgt_add").click(function(){ |
||||
shadowDiv.show("fast", function(){ |
||||
shadowOver = true; |
||||
popupBack.show("slow");
|
||||
}); |
||||
$(document).disableTextSelect(); |
||||
}); |
||||
|
||||
$(".style_select option[value='1']").text(sankoreLang.slate); |
||||
$(".style_select option[value='2']").text(sankoreLang.pad); |
||||
|
||||
$(".style_select").change(function (event){ |
||||
changeStyle($(this).find("option:selected").val()); |
||||
}) |
||||
|
||||
/* -------------- END OF WORK WITH BUTTONS ---------------*/ |
||||
|
||||
//basic divs
|
||||
var leftDiv = $("<div id='leftDiv' class='leftDiv'>").appendTo("#data"); |
||||
var rightDiv = $("<div id='rightDiv' class='rightDiv'>").appendTo("#data"); |
||||
|
||||
//divs for adding a new item
|
||||
var shadowDiv = $("<div id='shadowDiv' class='shadowDiv'>").appendTo("#data"); |
||||
var popupBack = $("<div id='popupBack' class='popupBack'>").appendTo("#data"); |
||||
|
||||
//input fields and buttons for a popup window
|
||||
var expressionDiv = $("<div id='expressionDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var experssionLabel = $("<span id='experssionLabel' class='popupLabels'><b>" + sankoreLang.enter_data + "</b></span>").appendTo(expressionDiv); |
||||
var expresionText = $("<input type='text' id='expresionText' class='expresionInput'/>").appendTo(expressionDiv); |
||||
|
||||
var resultDiv = $("<div id='resultDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var resultLabel = $("<span id='resultLabel' class='popupLabels'><b>" + sankoreLang.enter_result + "</b></span>").appendTo(resultDiv); |
||||
var resultText = $("<input type='text' id='resultText' class='expresionInput'/>").appendTo(resultDiv); |
||||
|
||||
var popupButtonsDiv= $("<div id='popupButtonsDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var cancelButton = $("<input type='button' id='cancelButton' class='popupButtons' value='" + sankoreLang.cancel + "'/>").appendTo(popupButtonsDiv); |
||||
var okButton = $("<input type='button' id='okButton' class='popupButtons' value='" + sankoreLang.ok + "'/>").appendTo(popupButtonsDiv); |
||||
|
||||
/* -------------- A WORK WITH POPUP BUTTONS AND FIELDS ---------------*/ |
||||
|
||||
$("#resultText, #expresionText").keyup(function(){ |
||||
if($(this).val()){ |
||||
$(this).css("background-color", "#ff9"); |
||||
} |
||||
}); |
||||
|
||||
cancelButton.click(function(){ |
||||
$(document).enableTextSelect(); |
||||
popupBack.hide("slow", function(){ |
||||
$("#resultText, #expresionText").val("") |
||||
.css("background-color", "#ffc"); |
||||
shadowDiv.hide("fast"); |
||||
shadowOver = false;
|
||||
});
|
||||
}); |
||||
|
||||
okButton.click(function(){ |
||||
$(document).enableTextSelect(); |
||||
if(checkEmptyFields(expresionText) && checkEmptyFields(resultText)){ |
||||
popupBack.hide("slow", function(){ |
||||
shadowDiv.hide("fast"); |
||||
shadowOver = false; |
||||
addTask(expresionText.val(), resultText.val()); |
||||
$("#resultText, #expresionText").val("") |
||||
.css("background-color", "#ffc"); |
||||
}) |
||||
} |
||||
}); |
||||
|
||||
/* -------------- THE END OF WORK WITH POPUP BUTTONS AND FIELDS ---------------*/
|
||||
|
||||
// a work with dragging possibility
|
||||
$("input:text, .style_select").mouseover(function(){ |
||||
$(document).enableTextSelect();
|
||||
}); |
||||
|
||||
$("input:text, .style_select").mouseout(function(){ |
||||
$(document).disableTextSelect();
|
||||
}); |
||||
|
||||
$(".readyTask, .editContainer").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
dragElement = $(this); |
||||
coords.left = event.pageX - $(this).position().left; |
||||
coords.top = event.pageY - $(this).position().top; |
||||
resizeObj.width = $(this).width(); |
||||
resizeObj.height = $(this).height(); |
||||
} |
||||
}); |
||||
|
||||
$(".rightResize").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
resizeObj.x = true; |
||||
} |
||||
}); |
||||
|
||||
$(".bottomResize").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
resizeObj.y = true; |
||||
} |
||||
}); |
||||
|
||||
$("body").mouseup(function(event){ |
||||
if(!shadowOver){ |
||||
dragElement = null; |
||||
resizeObj.x = false; |
||||
resizeObj.y = false; |
||||
} |
||||
}); |
||||
|
||||
$("body").mousemove(function(event){ |
||||
if(dragElement && !shadowOver){ |
||||
if(resizeObj.x) |
||||
dragElement.width(event.pageX - dragElement.position().left); |
||||
else if(resizeObj.y)
|
||||
dragElement.height(event.pageY - dragElement.position().top); |
||||
else |
||||
dragElement.css("top",event.pageY - coords.top).css("left", event.pageX - coords.left); |
||||
} |
||||
}); |
||||
|
||||
//closing item
|
||||
$(".closeItem").live("click", function(){ |
||||
if(!shadowOver){ |
||||
$(this).parent().remove(); |
||||
} |
||||
}); |
||||
|
||||
//$("#leftDiv,#rightDiv,#shadowDiv").css("height", $(window).height());
|
||||
popupBack.css("top", ($(window).height() - 138)*50/$(window).height() + "%"); |
||||
popupBack.css("left", ($(window).width() - 360)*50/$(window).width() + "%"); |
||||
|
||||
$(window).resize(function(){ |
||||
//$("#leftDiv,#rightDiv,#shadowDiv").css("height", $(window).height());
|
||||
popupBack.css("top", ($(window).height() - 138)*50/$(window).height() + "%"); |
||||
popupBack.css("left", ($(window).width() - 360)*50/$(window).width() + "%"); |
||||
}); |
||||
|
||||
if (window.widget) { |
||||
window.widget.onleave = function(){ |
||||
exportToSankore(); |
||||
sankore.setPreference("by_style", $(".style_select").find("option:selected").val()); |
||||
} |
||||
} |
||||
|
||||
// export data
|
||||
function exportToSankore(){
|
||||
|
||||
var arrayToExport = new Array();
|
||||
if(mode){
|
||||
if($(".editContainer").size() != 0){ |
||||
$(".editContainer").each(function(index, domElem){ |
||||
var objToExport = { |
||||
data1:"", |
||||
data2:"", |
||||
width:0, |
||||
height:0, |
||||
top:0, |
||||
left:0 |
||||
}
|
||||
objToExport.data1 = $(domElem).find(".readyTask").find(":first-child").text(); |
||||
objToExport.data2 = $(domElem).find(".readyTask").find(":last-child").text(); |
||||
objToExport.width = $(domElem).width(); |
||||
objToExport.height = $(domElem).height(); |
||||
objToExport.top = $(domElem).position().top; |
||||
objToExport.left = $(domElem).position().left; |
||||
arrayToExport.push(objToExport); |
||||
}); |
||||
} |
||||
} else {
|
||||
if($(".readyTask").size() != 0){ |
||||
$(".readyTask").each(function(index, domElem){ |
||||
var objToExport = { |
||||
data1:"", |
||||
data2:"", |
||||
width:0, |
||||
height:0, |
||||
top:0, |
||||
left:0 |
||||
}
|
||||
objToExport.data1 = $(domElem).find(":first-child").text(); |
||||
objToExport.data2 = $(domElem).find(":last-child").text(); |
||||
objToExport.width = $(domElem).width(); |
||||
objToExport.height = $(domElem).height(); |
||||
objToExport.top = $(domElem).position().top; |
||||
objToExport.left = $(domElem).position().left; |
||||
arrayToExport.push(objToExport); |
||||
}); |
||||
}
|
||||
} |
||||
sankore.setPreference("blackYellowData", JSON.stringify(arrayToExport)); |
||||
} |
||||
} |
||||
|
||||
//checking empty fields
|
||||
function checkEmptyFields(field){ |
||||
if(field.val() == ""){ |
||||
field.css("background-color", "red"); |
||||
return false; |
||||
} else { |
||||
field.css("background-color", "#ff9"); |
||||
return true; |
||||
} |
||||
} |
||||
|
||||
//adding a new task to the page
|
||||
function addTask(expression, result){ |
||||
var editContent = $("<div class='editContainer'>").width(240).height(70).appendTo("#data"); |
||||
var closeItem = $("<div class='closeItem'>").appendTo(editContent); |
||||
var rightResize = $("<div class='rightResize'>").appendTo(editContent); |
||||
var bottomResize = $("<div class='bottomResize'>").appendTo(editContent); |
||||
var main = $("<div class='readyTask'>"); |
||||
var exprContainer = $("<div class='taskContainer' style='color: yellow;' contenteditable='true'>" + expression + "</div>").appendTo(main); |
||||
var resContainer = $("<div class='taskContainer' style='color: black;' contenteditable='true'>"+ result + "</div>").appendTo(main); |
||||
main.appendTo(editContent); |
||||
} |
||||
|
||||
//changing the style
|
||||
function changeStyle(val){ |
||||
if(val == 1){ |
||||
$(".b_top_left").removeClass("btl_pad"); |
||||
$(".b_top_center").removeClass("btc_pad"); |
||||
$(".b_top_right").removeClass("btr_pad"); |
||||
$(".b_center_left").removeClass("bcl_pad"); |
||||
$(".b_center_right").removeClass("bcr_pad"); |
||||
$(".b_bottom_right").removeClass("bbr_pad"); |
||||
$(".b_bottom_left").removeClass("bbl_pad"); |
||||
$(".b_bottom_center").removeClass("bbc_pad"); |
||||
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); |
||||
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); |
||||
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); |
||||
$("#wgt_add").removeClass("pad_color").removeClass("pad_add"); |
||||
$("#wgt_name").removeClass("pad_color"); |
||||
$(".style_select").removeClass("pad_select"); |
||||
} else { |
||||
$(".b_top_left").addClass("btl_pad"); |
||||
$(".b_top_center").addClass("btc_pad"); |
||||
$(".b_top_right").addClass("btr_pad"); |
||||
$(".b_center_left").addClass("bcl_pad"); |
||||
$(".b_center_right").addClass("bcr_pad"); |
||||
$(".b_bottom_right").addClass("bbr_pad"); |
||||
$(".b_bottom_left").addClass("bbl_pad"); |
||||
$(".b_bottom_center").addClass("bbc_pad"); |
||||
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); |
||||
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); |
||||
$("#wgt_display").addClass("pad_color").addClass("pad_edit"); |
||||
$("#wgt_add").addClass("pad_color").addClass("pad_add"); |
||||
$("#wgt_name").addClass("pad_color"); |
||||
$(".style_select").addClass("pad_select"); |
||||
} |
||||
} |
@ -0,0 +1,59 @@ |
||||
<!-- |
||||
To change this template, choose Tools | Templates |
||||
and open the template in the editor. |
||||
--> |
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<title></title> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||
<link rel="stylesheet" type="text/css" href="../../css/basic.css"/> |
||||
<link rel="stylesheet" href="../../css/fonts/Lobster/stylesheet.css"> |
||||
<link rel="stylesheet" href="../../css/fonts/SF-Toontime/stylesheet.css"> |
||||
<script type="text/javascript" src="../../scripts/jquery-1.6.2.min.js"></script> |
||||
<script src="../../scripts/jquery.disable.text.select.js" type="text/javascript"></script> |
||||
<script type="text/javascript" src="scripts/blackYellow.js"></script> |
||||
<script type="text/javascript"> |
||||
|
||||
$(document).ready(function(){ |
||||
init(); |
||||
}); |
||||
|
||||
</script> |
||||
</head> |
||||
<body> |
||||
<table class="body_table" cellpadding=0 cellspacing=0> |
||||
<tr style="height: 54px;"> |
||||
<td class="b_top_left"> </td> |
||||
<td class="b_top_center"> |
||||
<div id="wgt_name"></div> |
||||
<div id="wgt_reload"></div> |
||||
<div id="wgt_display" class="selected"></div> |
||||
<div id="wgt_edit"></div> |
||||
<div id="wgt_add"></div> |
||||
<select class="style_select"> |
||||
<option value="1"></option> |
||||
<option value="2"></option> |
||||
</select> |
||||
</td> |
||||
<td class="b_top_right"> </td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td class="b_center_left"> </td> |
||||
<td> |
||||
<div id="data"> |
||||
|
||||
</div> |
||||
</td> |
||||
<td class="b_center_right"> </td> |
||||
</tr> |
||||
|
||||
<tr style="height: 54px;"> |
||||
<td class="b_bottom_left"> </td> |
||||
<td class="b_bottom_center"> </td> |
||||
<td class="b_bottom_right"> </td> |
||||
</tr> |
||||
</table> |
||||
</body> |
||||
</html> |
@ -0,0 +1,412 @@ |
||||
/* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation, either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
var sankoreLang = { |
||||
display: "Показать",
|
||||
edit: "Изменить",
|
||||
add: "Добавить",
|
||||
enter_data: "Введите вопрос:",
|
||||
enter_result: "Введите ответ:",
|
||||
ok: "Ок",
|
||||
cancel: "Отмена", |
||||
wgt_name: "Черный/желтый", |
||||
reload: "Обновить", |
||||
slate: "Узор", |
||||
pad: "Планшет" |
||||
}; |
||||
function init(){ |
||||
|
||||
//variables
|
||||
var toggleFlag = false; // detects toggling in toggle button
|
||||
var endFlag = false; // ending of toggling in toggle button
|
||||
var addToggleStart = false; // detects toggling in add button
|
||||
var addToggleEnd = false; // ending of toggling in add button
|
||||
var shadowOver = false; |
||||
var mode = false; |
||||
var popupFlag = false |
||||
var flagForSelect = false; |
||||
var dragElement = null; //the element that must be dragging
|
||||
var lang = ""; //locale language
|
||||
var coords = { |
||||
left:0, |
||||
top:0 |
||||
} |
||||
|
||||
var resizeObj = { |
||||
y:false, |
||||
x:false, |
||||
width:0, |
||||
height:0 |
||||
} |
||||
|
||||
var opacityChanged = false; |
||||
|
||||
$("#wgt_display").text(sankoreLang.display); |
||||
$("#wgt_edit").text(sankoreLang.edit); |
||||
$("#wgt_add").text(sankoreLang.add); |
||||
$("#wgt_name").text(sankoreLang.wgt_name); |
||||
$("#wgt_reload").text(sankoreLang.reload); |
||||
$(".style_select option[value='1']").text(sankoreLang.slate); |
||||
$(".style_select option[value='2']").text(sankoreLang.pad); |
||||
|
||||
if(window.sankore){ |
||||
if(sankore.preference("blackYellowData","")){ |
||||
var importArray = jQuery.parseJSON(sankore.preference("blackYellowData","")); |
||||
for(var i in importArray){ |
||||
var tmpReadyTask = $("<div class='readyTask'>"); |
||||
var exprContainer = $("<div class='taskContainer' style='color: yellow;'>" + importArray[i].data1 + "</div>").appendTo(tmpReadyTask); |
||||
var resContainer = $("<div class='taskContainer' style='color: black;'>"+ importArray[i].data2 + "</div>").appendTo(tmpReadyTask); |
||||
tmpReadyTask.width(importArray[i].width) |
||||
.height(importArray[i].height) |
||||
.css("position","absolute") |
||||
.css("top",importArray[i].top) |
||||
.css("left",importArray[i].left);
|
||||
tmpReadyTask.appendTo("#data"); |
||||
}
|
||||
} |
||||
$(document).disableTextSelect(); |
||||
} |
||||
|
||||
/* ------------- BUTTONS -------------*/ |
||||
|
||||
if(sankore.preference("by_style","")){ |
||||
changeStyle(sankore.preference("by_style","")); |
||||
$(".style_select").val(sankore.preference("by_style","")); |
||||
} else |
||||
changeStyle(1) |
||||
|
||||
$("#wgt_display, #wgt_edit").click(function(event){ |
||||
if(this.id == "wgt_display"){ |
||||
if(!$(this).hasClass("selected")){
|
||||
$(this).addClass("selected"); |
||||
$("#wgt_edit").removeClass("selected"); |
||||
$(".style_select").css("display","none");
|
||||
$(this).css("display", "none"); |
||||
$("#wgt_add").css("display", "none"); |
||||
$("#wgt_edit").css("display", "block"); |
||||
mode = false; |
||||
$(".leftDiv, .rightDiv").animate({ |
||||
"opacity":"1" |
||||
},"slow",function(){ |
||||
if(opacityChanged){ |
||||
if($(".editContainer").size() != 0){ |
||||
$(".editContainer").each(function(index, domElem){ |
||||
var tmpReadyTask = $(domElem).find(".readyTask"); |
||||
tmpReadyTask.width($(domElem).width()) |
||||
.height($(domElem).height()) |
||||
.css("position","absolute") |
||||
.css("top",$(domElem).position().top) |
||||
.css("left",$(domElem).position().left) |
||||
.find(".taskContainer").removeAttr("contenteditable");
|
||||
|
||||
$(domElem).remove(); |
||||
tmpReadyTask.appendTo("#data"); |
||||
}); |
||||
} |
||||
opacityChanged = false; |
||||
} |
||||
}); |
||||
$(document).disableTextSelect();
|
||||
} |
||||
} else {
|
||||
if(!$(this).hasClass("selected")){ |
||||
$(this).addClass("selected"); |
||||
$("#wgt_display").removeClass("selected"); |
||||
$(".style_select").css("display","block");
|
||||
$(this).css("display", "none"); |
||||
$("#wgt_add").css("display", "block"); |
||||
$("#wgt_display").css("display", "block"); |
||||
mode = true;
|
||||
$(document).enableTextSelect();
|
||||
$(".leftDiv, .rightDiv").animate({ |
||||
"opacity":"0.4" |
||||
},"slow",function(){ |
||||
if(!opacityChanged){ |
||||
if($(".readyTask").size() != 0){ |
||||
$(".readyTask").each(function(index, domElem){
|
||||
var editContent = $("<div class='editContainer'>").width($(domElem).width() + 10).height($(domElem) + 10).appendTo("#data"); |
||||
var closeItem = $("<div class='closeItem'>").appendTo(editContent); |
||||
var rightResize = $("<div class='rightResize'>").appendTo(editContent); |
||||
var bottomResize = $("<div class='bottomResize'>").appendTo(editContent); |
||||
editContent.css("top", $(domElem).position().top).css("left", $(domElem).position().left); |
||||
$(domElem).css("position","static") |
||||
.width("100%") |
||||
.height("100%") |
||||
.find(".taskContainer").attr("contenteditable", "true"); |
||||
$(domElem).appendTo(editContent); |
||||
}); |
||||
} |
||||
opacityChanged = true; |
||||
} |
||||
}); |
||||
} |
||||
} |
||||
}); |
||||
|
||||
$("#wgt_reload").click(function(){ |
||||
window.location.reload(); |
||||
}); |
||||
|
||||
$("#wgt_add").click(function(){ |
||||
shadowDiv.show("fast", function(){ |
||||
shadowOver = true; |
||||
popupBack.show("slow");
|
||||
}); |
||||
$(document).disableTextSelect(); |
||||
}); |
||||
|
||||
$(".style_select option[value='1']").text(sankoreLang.slate); |
||||
$(".style_select option[value='2']").text(sankoreLang.pad); |
||||
|
||||
$(".style_select").change(function (event){ |
||||
changeStyle($(this).find("option:selected").val()); |
||||
}) |
||||
|
||||
/* -------------- END OF WORK WITH BUTTONS ---------------*/ |
||||
|
||||
//basic divs
|
||||
var leftDiv = $("<div id='leftDiv' class='leftDiv'>").appendTo("#data"); |
||||
var rightDiv = $("<div id='rightDiv' class='rightDiv'>").appendTo("#data"); |
||||
|
||||
//divs for adding a new item
|
||||
var shadowDiv = $("<div id='shadowDiv' class='shadowDiv'>").appendTo("#data"); |
||||
var popupBack = $("<div id='popupBack' class='popupBack'>").appendTo("#data"); |
||||
|
||||
//input fields and buttons for a popup window
|
||||
var expressionDiv = $("<div id='expressionDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var experssionLabel = $("<span id='experssionLabel' class='popupLabels'><b>" + sankoreLang.enter_data + "</b></span>").appendTo(expressionDiv); |
||||
var expresionText = $("<input type='text' id='expresionText' class='expresionInput'/>").appendTo(expressionDiv); |
||||
|
||||
var resultDiv = $("<div id='resultDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var resultLabel = $("<span id='resultLabel' class='popupLabels'><b>" + sankoreLang.enter_result + "</b></span>").appendTo(resultDiv); |
||||
var resultText = $("<input type='text' id='resultText' class='expresionInput'/>").appendTo(resultDiv); |
||||
|
||||
var popupButtonsDiv= $("<div id='popupButtonsDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var cancelButton = $("<input type='button' id='cancelButton' class='popupButtons' value='" + sankoreLang.cancel + "'/>").appendTo(popupButtonsDiv); |
||||
var okButton = $("<input type='button' id='okButton' class='popupButtons' value='" + sankoreLang.ok + "'/>").appendTo(popupButtonsDiv); |
||||
|
||||
/* -------------- A WORK WITH POPUP BUTTONS AND FIELDS ---------------*/ |
||||
|
||||
$("#resultText, #expresionText").keyup(function(){ |
||||
if($(this).val()){ |
||||
$(this).css("background-color", "#ff9"); |
||||
} |
||||
}); |
||||
|
||||
cancelButton.click(function(){ |
||||
$(document).enableTextSelect(); |
||||
popupBack.hide("slow", function(){ |
||||
$("#resultText, #expresionText").val("") |
||||
.css("background-color", "#ffc"); |
||||
shadowDiv.hide("fast"); |
||||
shadowOver = false;
|
||||
});
|
||||
}); |
||||
|
||||
okButton.click(function(){ |
||||
$(document).enableTextSelect(); |
||||
if(checkEmptyFields(expresionText) && checkEmptyFields(resultText)){ |
||||
popupBack.hide("slow", function(){ |
||||
shadowDiv.hide("fast"); |
||||
shadowOver = false; |
||||
addTask(expresionText.val(), resultText.val()); |
||||
$("#resultText, #expresionText").val("") |
||||
.css("background-color", "#ffc"); |
||||
}) |
||||
} |
||||
}); |
||||
|
||||
/* -------------- THE END OF WORK WITH POPUP BUTTONS AND FIELDS ---------------*/
|
||||
|
||||
// a work with dragging possibility
|
||||
$("input:text, .style_select").mouseover(function(){ |
||||
$(document).enableTextSelect();
|
||||
}); |
||||
|
||||
$("input:text, .style_select").mouseout(function(){ |
||||
$(document).disableTextSelect();
|
||||
}); |
||||
|
||||
$(".readyTask, .editContainer").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
dragElement = $(this); |
||||
coords.left = event.pageX - $(this).position().left; |
||||
coords.top = event.pageY - $(this).position().top; |
||||
resizeObj.width = $(this).width(); |
||||
resizeObj.height = $(this).height(); |
||||
} |
||||
}); |
||||
|
||||
$(".rightResize").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
resizeObj.x = true; |
||||
} |
||||
}); |
||||
|
||||
$(".bottomResize").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
resizeObj.y = true; |
||||
} |
||||
}); |
||||
|
||||
$("body").mouseup(function(event){ |
||||
if(!shadowOver){ |
||||
dragElement = null; |
||||
resizeObj.x = false; |
||||
resizeObj.y = false; |
||||
} |
||||
}); |
||||
|
||||
$("body").mousemove(function(event){ |
||||
if(dragElement && !shadowOver){ |
||||
if(resizeObj.x) |
||||
dragElement.width(event.pageX - dragElement.position().left); |
||||
else if(resizeObj.y)
|
||||
dragElement.height(event.pageY - dragElement.position().top); |
||||
else |
||||
dragElement.css("top",event.pageY - coords.top).css("left", event.pageX - coords.left); |
||||
} |
||||
}); |
||||
|
||||
//closing item
|
||||
$(".closeItem").live("click", function(){ |
||||
if(!shadowOver){ |
||||
$(this).parent().remove(); |
||||
} |
||||
}); |
||||
|
||||
//$("#leftDiv,#rightDiv,#shadowDiv").css("height", $(window).height());
|
||||
popupBack.css("top", ($(window).height() - 138)*50/$(window).height() + "%"); |
||||
popupBack.css("left", ($(window).width() - 360)*50/$(window).width() + "%"); |
||||
|
||||
$(window).resize(function(){ |
||||
//$("#leftDiv,#rightDiv,#shadowDiv").css("height", $(window).height());
|
||||
popupBack.css("top", ($(window).height() - 138)*50/$(window).height() + "%"); |
||||
popupBack.css("left", ($(window).width() - 360)*50/$(window).width() + "%"); |
||||
}); |
||||
|
||||
if (window.widget) { |
||||
window.widget.onleave = function(){ |
||||
exportToSankore(); |
||||
sankore.setPreference("by_style", $(".style_select").find("option:selected").val()); |
||||
} |
||||
} |
||||
|
||||
// export data
|
||||
function exportToSankore(){
|
||||
|
||||
var arrayToExport = new Array();
|
||||
if(mode){
|
||||
if($(".editContainer").size() != 0){ |
||||
$(".editContainer").each(function(index, domElem){ |
||||
var objToExport = { |
||||
data1:"", |
||||
data2:"", |
||||
width:0, |
||||
height:0, |
||||
top:0, |
||||
left:0 |
||||
}
|
||||
objToExport.data1 = $(domElem).find(".readyTask").find(":first-child").text(); |
||||
objToExport.data2 = $(domElem).find(".readyTask").find(":last-child").text(); |
||||
objToExport.width = $(domElem).width(); |
||||
objToExport.height = $(domElem).height(); |
||||
objToExport.top = $(domElem).position().top; |
||||
objToExport.left = $(domElem).position().left; |
||||
arrayToExport.push(objToExport); |
||||
}); |
||||
} |
||||
} else {
|
||||
if($(".readyTask").size() != 0){ |
||||
$(".readyTask").each(function(index, domElem){ |
||||
var objToExport = { |
||||
data1:"", |
||||
data2:"", |
||||
width:0, |
||||
height:0, |
||||
top:0, |
||||
left:0 |
||||
}
|
||||
objToExport.data1 = $(domElem).find(":first-child").text(); |
||||
objToExport.data2 = $(domElem).find(":last-child").text(); |
||||
objToExport.width = $(domElem).width(); |
||||
objToExport.height = $(domElem).height(); |
||||
objToExport.top = $(domElem).position().top; |
||||
objToExport.left = $(domElem).position().left; |
||||
arrayToExport.push(objToExport); |
||||
}); |
||||
}
|
||||
} |
||||
sankore.setPreference("blackYellowData", JSON.stringify(arrayToExport)); |
||||
} |
||||
} |
||||
|
||||
//checking empty fields
|
||||
function checkEmptyFields(field){ |
||||
if(field.val() == ""){ |
||||
field.css("background-color", "red"); |
||||
return false; |
||||
} else { |
||||
field.css("background-color", "#ff9"); |
||||
return true; |
||||
} |
||||
} |
||||
|
||||
//adding a new task to the page
|
||||
function addTask(expression, result){ |
||||
var editContent = $("<div class='editContainer'>").width(240).height(70).appendTo("#data"); |
||||
var closeItem = $("<div class='closeItem'>").appendTo(editContent); |
||||
var rightResize = $("<div class='rightResize'>").appendTo(editContent); |
||||
var bottomResize = $("<div class='bottomResize'>").appendTo(editContent); |
||||
var main = $("<div class='readyTask'>"); |
||||
var exprContainer = $("<div class='taskContainer' style='color: yellow;' contenteditable='true'>" + expression + "</div>").appendTo(main); |
||||
var resContainer = $("<div class='taskContainer' style='color: black;' contenteditable='true'>"+ result + "</div>").appendTo(main); |
||||
main.appendTo(editContent); |
||||
} |
||||
|
||||
//changing the style
|
||||
function changeStyle(val){ |
||||
if(val == 1){ |
||||
$(".b_top_left").removeClass("btl_pad"); |
||||
$(".b_top_center").removeClass("btc_pad"); |
||||
$(".b_top_right").removeClass("btr_pad"); |
||||
$(".b_center_left").removeClass("bcl_pad"); |
||||
$(".b_center_right").removeClass("bcr_pad"); |
||||
$(".b_bottom_right").removeClass("bbr_pad"); |
||||
$(".b_bottom_left").removeClass("bbl_pad"); |
||||
$(".b_bottom_center").removeClass("bbc_pad"); |
||||
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); |
||||
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); |
||||
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); |
||||
$("#wgt_add").removeClass("pad_color").removeClass("pad_add"); |
||||
$("#wgt_name").removeClass("pad_color"); |
||||
$(".style_select").removeClass("pad_select"); |
||||
} else { |
||||
$(".b_top_left").addClass("btl_pad"); |
||||
$(".b_top_center").addClass("btc_pad"); |
||||
$(".b_top_right").addClass("btr_pad"); |
||||
$(".b_center_left").addClass("bcl_pad"); |
||||
$(".b_center_right").addClass("bcr_pad"); |
||||
$(".b_bottom_right").addClass("bbr_pad"); |
||||
$(".b_bottom_left").addClass("bbl_pad"); |
||||
$(".b_bottom_center").addClass("bbc_pad"); |
||||
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); |
||||
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); |
||||
$("#wgt_display").addClass("pad_color").addClass("pad_edit"); |
||||
$("#wgt_add").addClass("pad_color").addClass("pad_add"); |
||||
$("#wgt_name").addClass("pad_color"); |
||||
$(".style_select").addClass("pad_select"); |
||||
} |
||||
} |
@ -0,0 +1,413 @@ |
||||
/* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation, either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
var sankoreLang = { |
||||
display: "Display",
|
||||
edit: "Edit",
|
||||
add: "Add",
|
||||
enter_data: "Enter data:",
|
||||
enter_result: "Enter result:",
|
||||
ok: "Ok",
|
||||
cancel: "Cancel", |
||||
wgt_name: "Black/yellow", |
||||
reload: "Reload", |
||||
slate: "Wood", |
||||
pad: "Pad" |
||||
}; |
||||
|
||||
function init(){ |
||||
|
||||
//variables
|
||||
var toggleFlag = false; // detects toggling in toggle button
|
||||
var endFlag = false; // ending of toggling in toggle button
|
||||
var addToggleStart = false; // detects toggling in add button
|
||||
var addToggleEnd = false; // ending of toggling in add button
|
||||
var shadowOver = false; |
||||
var mode = false; |
||||
var popupFlag = false |
||||
var flagForSelect = false; |
||||
var dragElement = null; //the element that must be dragging
|
||||
var lang = ""; //locale language
|
||||
var coords = { |
||||
left:0, |
||||
top:0 |
||||
} |
||||
|
||||
var resizeObj = { |
||||
y:false, |
||||
x:false, |
||||
width:0, |
||||
height:0 |
||||
} |
||||
|
||||
var opacityChanged = false; |
||||
|
||||
$("#wgt_display").text(sankoreLang.display); |
||||
$("#wgt_edit").text(sankoreLang.edit); |
||||
$("#wgt_add").text(sankoreLang.add); |
||||
$("#wgt_name").text(sankoreLang.wgt_name); |
||||
$("#wgt_reload").text(sankoreLang.reload); |
||||
$(".style_select option[value='1']").text(sankoreLang.slate); |
||||
$(".style_select option[value='2']").text(sankoreLang.pad); |
||||
|
||||
if(window.sankore){ |
||||
if(sankore.preference("blackYellowData","")){ |
||||
var importArray = jQuery.parseJSON(sankore.preference("blackYellowData","")); |
||||
for(var i in importArray){ |
||||
var tmpReadyTask = $("<div class='readyTask'>"); |
||||
var exprContainer = $("<div class='taskContainer' style='color: yellow;'>" + importArray[i].data1 + "</div>").appendTo(tmpReadyTask); |
||||
var resContainer = $("<div class='taskContainer' style='color: black;'>"+ importArray[i].data2 + "</div>").appendTo(tmpReadyTask); |
||||
tmpReadyTask.width(importArray[i].width) |
||||
.height(importArray[i].height) |
||||
.css("position","absolute") |
||||
.css("top",importArray[i].top) |
||||
.css("left",importArray[i].left);
|
||||
tmpReadyTask.appendTo("#data"); |
||||
}
|
||||
} |
||||
$(document).disableTextSelect(); |
||||
} |
||||
|
||||
/* ------------- BUTTONS -------------*/ |
||||
|
||||
if(sankore.preference("by_style","")){ |
||||
changeStyle(sankore.preference("by_style","")); |
||||
$(".style_select").val(sankore.preference("by_style","")); |
||||
} else |
||||
changeStyle(1) |
||||
|
||||
$("#wgt_display, #wgt_edit").click(function(event){ |
||||
if(this.id == "wgt_display"){ |
||||
if(!$(this).hasClass("selected")){
|
||||
$(this).addClass("selected"); |
||||
$("#wgt_edit").removeClass("selected"); |
||||
$(".style_select").css("display","none");
|
||||
$(this).css("display", "none"); |
||||
$("#wgt_add").css("display", "none"); |
||||
$("#wgt_edit").css("display", "block"); |
||||
mode = false; |
||||
$(".leftDiv, .rightDiv").animate({ |
||||
"opacity":"1" |
||||
},"slow",function(){ |
||||
if(opacityChanged){ |
||||
if($(".editContainer").size() != 0){ |
||||
$(".editContainer").each(function(index, domElem){ |
||||
var tmpReadyTask = $(domElem).find(".readyTask"); |
||||
tmpReadyTask.width($(domElem).width()) |
||||
.height($(domElem).height()) |
||||
.css("position","absolute") |
||||
.css("top",$(domElem).position().top) |
||||
.css("left",$(domElem).position().left) |
||||
.find(".taskContainer").removeAttr("contenteditable");
|
||||
|
||||
$(domElem).remove(); |
||||
tmpReadyTask.appendTo("#data"); |
||||
}); |
||||
} |
||||
opacityChanged = false; |
||||
} |
||||
}); |
||||
$(document).disableTextSelect();
|
||||
} |
||||
} else {
|
||||
if(!$(this).hasClass("selected")){ |
||||
$(this).addClass("selected"); |
||||
$("#wgt_display").removeClass("selected"); |
||||
$(".style_select").css("display","block");
|
||||
$(this).css("display", "none"); |
||||
$("#wgt_add").css("display", "block"); |
||||
$("#wgt_display").css("display", "block"); |
||||
mode = true;
|
||||
$(document).enableTextSelect();
|
||||
$(".leftDiv, .rightDiv").animate({ |
||||
"opacity":"0.4" |
||||
},"slow",function(){ |
||||
if(!opacityChanged){ |
||||
if($(".readyTask").size() != 0){ |
||||
$(".readyTask").each(function(index, domElem){
|
||||
var editContent = $("<div class='editContainer'>").width($(domElem).width() + 10).height($(domElem) + 10).appendTo("#data"); |
||||
var closeItem = $("<div class='closeItem'>").appendTo(editContent); |
||||
var rightResize = $("<div class='rightResize'>").appendTo(editContent); |
||||
var bottomResize = $("<div class='bottomResize'>").appendTo(editContent); |
||||
editContent.css("top", $(domElem).position().top).css("left", $(domElem).position().left); |
||||
$(domElem).css("position","static") |
||||
.width("100%") |
||||
.height("100%") |
||||
.find(".taskContainer").attr("contenteditable", "true"); |
||||
$(domElem).appendTo(editContent); |
||||
}); |
||||
} |
||||
opacityChanged = true; |
||||
} |
||||
}); |
||||
} |
||||
} |
||||
}); |
||||
|
||||
$("#wgt_reload").click(function(){ |
||||
window.location.reload(); |
||||
}); |
||||
|
||||
$("#wgt_add").click(function(){ |
||||
shadowDiv.show("fast", function(){ |
||||
shadowOver = true; |
||||
popupBack.show("slow");
|
||||
}); |
||||
$(document).disableTextSelect(); |
||||
}); |
||||
|
||||
$(".style_select option[value='1']").text(sankoreLang.slate); |
||||
$(".style_select option[value='2']").text(sankoreLang.pad); |
||||
|
||||
$(".style_select").change(function (event){ |
||||
changeStyle($(this).find("option:selected").val()); |
||||
}) |
||||
|
||||
/* -------------- END OF WORK WITH BUTTONS ---------------*/ |
||||
|
||||
//basic divs
|
||||
var leftDiv = $("<div id='leftDiv' class='leftDiv'>").appendTo("#data"); |
||||
var rightDiv = $("<div id='rightDiv' class='rightDiv'>").appendTo("#data"); |
||||
|
||||
//divs for adding a new item
|
||||
var shadowDiv = $("<div id='shadowDiv' class='shadowDiv'>").appendTo("#data"); |
||||
var popupBack = $("<div id='popupBack' class='popupBack'>").appendTo("#data"); |
||||
|
||||
//input fields and buttons for a popup window
|
||||
var expressionDiv = $("<div id='expressionDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var experssionLabel = $("<span id='experssionLabel' class='popupLabels'><b>" + sankoreLang.enter_data + "</b></span>").appendTo(expressionDiv); |
||||
var expresionText = $("<input type='text' id='expresionText' class='expresionInput'/>").appendTo(expressionDiv); |
||||
|
||||
var resultDiv = $("<div id='resultDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var resultLabel = $("<span id='resultLabel' class='popupLabels'><b>" + sankoreLang.enter_result + "</b></span>").appendTo(resultDiv); |
||||
var resultText = $("<input type='text' id='resultText' class='expresionInput'/>").appendTo(resultDiv); |
||||
|
||||
var popupButtonsDiv= $("<div id='popupButtonsDiv' class='popupContainers'>").appendTo(popupBack); |
||||
var cancelButton = $("<input type='button' id='cancelButton' class='popupButtons' value='" + sankoreLang.cancel + "'/>").appendTo(popupButtonsDiv); |
||||
var okButton = $("<input type='button' id='okButton' class='popupButtons' value='" + sankoreLang.ok + "'/>").appendTo(popupButtonsDiv); |
||||
|
||||
/* -------------- A WORK WITH POPUP BUTTONS AND FIELDS ---------------*/ |
||||
|
||||
$("#resultText, #expresionText").keyup(function(){ |
||||
if($(this).val()){ |
||||
$(this).css("background-color", "#ff9"); |
||||
} |
||||
}); |
||||
|
||||
cancelButton.click(function(){ |
||||
$(document).enableTextSelect(); |
||||
popupBack.hide("slow", function(){ |
||||
$("#resultText, #expresionText").val("") |
||||
.css("background-color", "#ffc"); |
||||
shadowDiv.hide("fast"); |
||||
shadowOver = false;
|
||||
});
|
||||
}); |
||||
|
||||
okButton.click(function(){ |
||||
$(document).enableTextSelect(); |
||||
if(checkEmptyFields(expresionText) && checkEmptyFields(resultText)){ |
||||
popupBack.hide("slow", function(){ |
||||
shadowDiv.hide("fast"); |
||||
shadowOver = false; |
||||
addTask(expresionText.val(), resultText.val()); |
||||
$("#resultText, #expresionText").val("") |
||||
.css("background-color", "#ffc"); |
||||
}) |
||||
} |
||||
}); |
||||
|
||||
/* -------------- THE END OF WORK WITH POPUP BUTTONS AND FIELDS ---------------*/
|
||||
|
||||
// a work with dragging possibility
|
||||
$("input:text, .style_select").mouseover(function(){ |
||||
$(document).enableTextSelect();
|
||||
}); |
||||
|
||||
$("input:text, .style_select").mouseout(function(){ |
||||
$(document).disableTextSelect();
|
||||
}); |
||||
|
||||
$(".readyTask, .editContainer").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
dragElement = $(this); |
||||
coords.left = event.pageX - $(this).position().left; |
||||
coords.top = event.pageY - $(this).position().top; |
||||
resizeObj.width = $(this).width(); |
||||
resizeObj.height = $(this).height(); |
||||
} |
||||
}); |
||||
|
||||
$(".rightResize").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
resizeObj.x = true; |
||||
} |
||||
}); |
||||
|
||||
$(".bottomResize").live("mousedown",function(event){ |
||||
if(!shadowOver){ |
||||
resizeObj.y = true; |
||||
} |
||||
}); |
||||
|
||||
$("body").mouseup(function(event){ |
||||
if(!shadowOver){ |
||||
dragElement = null; |
||||
resizeObj.x = false; |
||||
resizeObj.y = false; |
||||
} |
||||
}); |
||||
|
||||
$("body").mousemove(function(event){ |
||||
if(dragElement && !shadowOver){ |
||||
if(resizeObj.x) |
||||
dragElement.width(event.pageX - dragElement.position().left); |
||||
else if(resizeObj.y)
|
||||
dragElement.height(event.pageY - dragElement.position().top); |
||||
else |
||||
dragElement.css("top",event.pageY - coords.top).css("left", event.pageX - coords.left); |
||||
} |
||||
}); |
||||
|
||||
//closing item
|
||||
$(".closeItem").live("click", function(){ |
||||
if(!shadowOver){ |
||||
$(this).parent().remove(); |
||||
} |
||||
}); |
||||
|
||||
//$("#leftDiv,#rightDiv,#shadowDiv").css("height", $(window).height());
|
||||
popupBack.css("top", ($(window).height() - 138)*50/$(window).height() + "%"); |
||||
popupBack.css("left", ($(window).width() - 360)*50/$(window).width() + "%"); |
||||
|
||||
$(window).resize(function(){ |
||||
//$("#leftDiv,#rightDiv,#shadowDiv").css("height", $(window).height());
|
||||
popupBack.css("top", ($(window).height() - 138)*50/$(window).height() + "%"); |
||||
popupBack.css("left", ($(window).width() - 360)*50/$(window).width() + "%"); |
||||
}); |
||||
|
||||
if (window.widget) { |
||||
window.widget.onleave = function(){ |
||||
exportToSankore(); |
||||
sankore.setPreference("by_style", $(".style_select").find("option:selected").val()); |
||||
} |
||||
} |
||||
|
||||
// export data
|
||||
function exportToSankore(){
|
||||
|
||||
var arrayToExport = new Array();
|
||||
if(mode){
|
||||
if($(".editContainer").size() != 0){ |
||||
$(".editContainer").each(function(index, domElem){ |
||||
var objToExport = { |
||||
data1:"", |
||||
data2:"", |
||||
width:0, |
||||
height:0, |
||||
top:0, |
||||
left:0 |
||||
}
|
||||
objToExport.data1 = $(domElem).find(".readyTask").find(":first-child").text(); |
||||
objToExport.data2 = $(domElem).find(".readyTask").find(":last-child").text(); |
||||
objToExport.width = $(domElem).width(); |
||||
objToExport.height = $(domElem).height(); |
||||
objToExport.top = $(domElem).position().top; |
||||
objToExport.left = $(domElem).position().left; |
||||
arrayToExport.push(objToExport); |
||||
}); |
||||
} |
||||
} else {
|
||||
if($(".readyTask").size() != 0){ |
||||
$(".readyTask").each(function(index, domElem){ |
||||
var objToExport = { |
||||
data1:"", |
||||
data2:"", |
||||
width:0, |
||||
height:0, |
||||
top:0, |
||||
left:0 |
||||
}
|
||||
objToExport.data1 = $(domElem).find(":first-child").text(); |
||||
objToExport.data2 = $(domElem).find(":last-child").text(); |
||||
objToExport.width = $(domElem).width(); |
||||
objToExport.height = $(domElem).height(); |
||||
objToExport.top = $(domElem).position().top; |
||||
objToExport.left = $(domElem).position().left; |
||||
arrayToExport.push(objToExport); |
||||
}); |
||||
}
|
||||
} |
||||
sankore.setPreference("blackYellowData", JSON.stringify(arrayToExport)); |
||||
} |
||||
} |
||||
|
||||
//checking empty fields
|
||||
function checkEmptyFields(field){ |
||||
if(field.val() == ""){ |
||||
field.css("background-color", "red"); |
||||
return false; |
||||
} else { |
||||
field.css("background-color", "#ff9"); |
||||
return true; |
||||
} |
||||
} |
||||
|
||||
//adding a new task to the page
|
||||
function addTask(expression, result){ |
||||
var editContent = $("<div class='editContainer'>").width(240).height(70).appendTo("#data"); |
||||
var closeItem = $("<div class='closeItem'>").appendTo(editContent); |
||||
var rightResize = $("<div class='rightResize'>").appendTo(editContent); |
||||
var bottomResize = $("<div class='bottomResize'>").appendTo(editContent); |
||||
var main = $("<div class='readyTask'>"); |
||||
var exprContainer = $("<div class='taskContainer' style='color: yellow;' contenteditable='true'>" + expression + "</div>").appendTo(main); |
||||
var resContainer = $("<div class='taskContainer' style='color: black;' contenteditable='true'>"+ result + "</div>").appendTo(main); |
||||
main.appendTo(editContent); |
||||
} |
||||
|
||||
//changing the style
|
||||
function changeStyle(val){ |
||||
if(val == 1){ |
||||
$(".b_top_left").removeClass("btl_pad"); |
||||
$(".b_top_center").removeClass("btc_pad"); |
||||
$(".b_top_right").removeClass("btr_pad"); |
||||
$(".b_center_left").removeClass("bcl_pad"); |
||||
$(".b_center_right").removeClass("bcr_pad"); |
||||
$(".b_bottom_right").removeClass("bbr_pad"); |
||||
$(".b_bottom_left").removeClass("bbl_pad"); |
||||
$(".b_bottom_center").removeClass("bbc_pad"); |
||||
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); |
||||
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); |
||||
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); |
||||
$("#wgt_add").removeClass("pad_color").removeClass("pad_add"); |
||||
$("#wgt_name").removeClass("pad_color"); |
||||
$(".style_select").removeClass("pad_select"); |
||||
} else { |
||||
$(".b_top_left").addClass("btl_pad"); |
||||
$(".b_top_center").addClass("btc_pad"); |
||||
$(".b_top_right").addClass("btr_pad"); |
||||
$(".b_center_left").addClass("bcl_pad"); |
||||
$(".b_center_right").addClass("bcr_pad"); |
||||
$(".b_bottom_right").addClass("bbr_pad"); |
||||
$(".b_bottom_left").addClass("bbl_pad"); |
||||
$(".b_bottom_center").addClass("bbc_pad"); |
||||
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); |
||||
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); |
||||
$("#wgt_display").addClass("pad_color").addClass("pad_edit"); |
||||
$("#wgt_add").addClass("pad_color").addClass("pad_add"); |
||||
$("#wgt_name").addClass("pad_color"); |
||||
$(".style_select").addClass("pad_select"); |
||||
} |
||||
} |
@ -0,0 +1,62 @@ |
||||
/** |
||||
* .disableTextSelect - Disable Text Select Plugin |
||||
* |
||||
* Version: 1.1 |
||||
* Updated: 2007-11-28 |
||||
* |
||||
* Used to stop users from selecting text |
||||
* |
||||
* Copyright (c) 2007 James Dempster (letssurf@gmail.com, http://www.jdempster.com/category/jquery/disabletextselect/)
|
||||
* |
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) |
||||
* and GPL (GPL-LICENSE.txt) licenses. |
||||
**/ |
||||
|
||||
/** |
||||
* Requirements: |
||||
* - jQuery (John Resig, http://www.jquery.com/)
|
||||
**/ |
||||
(function($) { |
||||
if ($.browser.mozilla) { |
||||
$.fn.disableTextSelect = function() { |
||||
return this.each(function() { |
||||
$(this).css({ |
||||
'MozUserSelect' : 'none' |
||||
}); |
||||
}); |
||||
}; |
||||
$.fn.enableTextSelect = function() { |
||||
return this.each(function() { |
||||
$(this).css({ |
||||
'MozUserSelect' : '' |
||||
}); |
||||
}); |
||||
}; |
||||
} else if ($.browser.msie) { |
||||
$.fn.disableTextSelect = function() { |
||||
return this.each(function() { |
||||
$(this).bind('selectstart.disableTextSelect', function() { |
||||
return false; |
||||
}); |
||||
}); |
||||
}; |
||||
$.fn.enableTextSelect = function() { |
||||
return this.each(function() { |
||||
$(this).unbind('selectstart.disableTextSelect'); |
||||
}); |
||||
}; |
||||
} else { |
||||
$.fn.disableTextSelect = function() { |
||||
return this.each(function() { |
||||
$(this).bind('mousedown.disableTextSelect', function() { |
||||
return false; |
||||
}); |
||||
}); |
||||
}; |
||||
$.fn.enableTextSelect = function() { |
||||
return this.each(function() { |
||||
$(this).unbind('mousedown.disableTextSelect'); |
||||
}); |
||||
}; |
||||
} |
||||
})(jQuery); |
@ -0,0 +1,16 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<widget xmlns="http://www.w3.org/ns/widgets" |
||||
xmlns:ub="http://uniboard.mnemis.com/widgets" |
||||
id="http://uniboard.mnemis.com/widgets/webbrowser" |
||||
version="1.1" |
||||
width="750" |
||||
height="400" |
||||
ub:resizable="true"> |
||||
|
||||
<name>Choisir</name> |
||||
<author href="http://www.getuniboard.com" |
||||
email="info@mnemis.com">Mnemis SA</author> |
||||
<description>Choisir widget</description> |
||||
|
||||
<content src="index.html"/> |
||||
</widget> |
@ -0,0 +1,568 @@ |
||||
/* |
||||
Document : basic |
||||
Created on : Sep 5, 2011, 12:01:33 PM |
||||
Author : GEG.BY |
||||
Description: |
||||
Purpose of the stylesheet follows. |
||||
*/ |
||||
|
||||
/* |
||||
TODO customize this sample style |
||||
Syntax recommendation http://www.w3.org/TR/REC-CSS2/ |
||||
*/ |
||||
|
||||
html, body{ |
||||
width: 100%; |
||||
height: 100%; |
||||
margin: 0; |
||||
padding: 0; |
||||
border-radius: 50px; |
||||
} |
||||
|
||||
body{ |
||||
background-image: url(../images/bg.png); |
||||
} |
||||
|
||||
.toggleButton{ |
||||
width: 20px; |
||||
height: 28px; |
||||
border: none; |
||||
background-image: url(../images/greySquare.png); |
||||
font-weight: bold; |
||||
font-family: Verdana; |
||||
color: #00C6FF;; |
||||
cursor: pointer; |
||||
} |
||||
|
||||
.buttonDiv{ |
||||
position: fixed; |
||||
float: right; |
||||
z-index: 1; |
||||
} |
||||
|
||||
.addQstDiv{ |
||||
float: left; |
||||
padding: 5px; |
||||
margin: 2px; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
font-size: large; |
||||
} |
||||
|
||||
.addQstButton{ |
||||
margin: 0; |
||||
background: none; |
||||
color: white; |
||||
cursor: pointer; |
||||
border: 3px solid #ccc; |
||||
border-radius: 20px; |
||||
} |
||||
|
||||
#addQsqSpan1{ |
||||
font-size: 30px; |
||||
margin-right: 10px !important; |
||||
} |
||||
|
||||
.qstDiv{ |
||||
width: 90%; |
||||
margin: 2px auto; |
||||
padding: 5px; |
||||
float: left; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
} |
||||
|
||||
.qstDivDisplay{ |
||||
width: 90%; |
||||
margin: 5px 5%; |
||||
padding: 5px; |
||||
float: left; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
border: 2px solid #cccccc; |
||||
-moz-border-radius: 5px; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
-moz-box-shadow: #dadada -1px 0 4px; |
||||
-webkit-box-shadow: #dadada -1px 0 4px; |
||||
box-shadow: #dadada -1px 0 4px; |
||||
} |
||||
|
||||
.spanOptConn{ |
||||
float: left; |
||||
width: 100%; |
||||
} |
||||
|
||||
.qstNumber{ |
||||
float: left; |
||||
font-size: 30px; |
||||
margin-left: 10px !important; |
||||
color: white; |
||||
} |
||||
|
||||
.qstOptions{ |
||||
float: right; |
||||
} |
||||
|
||||
.changeOptions{ |
||||
border: none; |
||||
height: 25px; |
||||
background-color: white; |
||||
width: auto; |
||||
color: black; |
||||
font-weight: bold; |
||||
cursor: pointer; |
||||
border-radius: 10px; |
||||
} |
||||
|
||||
.applyChanges{ |
||||
border: none; |
||||
height: 25px; |
||||
background-color: white; |
||||
width: auto; |
||||
color: black; |
||||
font-weight: bold; |
||||
cursor: pointer; |
||||
border-radius: 10px; |
||||
} |
||||
|
||||
.qstDelete{ |
||||
border: none; |
||||
background-image: url(../images/bigBlackClose.png); |
||||
background-color: white; |
||||
background-repeat: no-repeat; |
||||
background-position: 45% 50%; |
||||
width: 25px; |
||||
height: 25px; |
||||
line-height: 25px; |
||||
cursor: pointer; |
||||
border-radius: 15px; |
||||
margin: 0 5px; |
||||
} |
||||
|
||||
.qstContent{ |
||||
float: left; |
||||
padding: 3px; |
||||
margin-left: 10px; |
||||
margin-bottom: 10px; |
||||
width: 95%; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
font-size: small; |
||||
border: 3px solid #ccc; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
-moz-box-shadow: #dadada -1px 0 4px; |
||||
-webkit-box-shadow: #dadada -1px 0 4px; |
||||
box-shadow: #dadada -1px 0 4px; |
||||
color: white; |
||||
} |
||||
|
||||
.qstContentDisplay{ |
||||
float: left; |
||||
padding: 5px; |
||||
margin: 10px; |
||||
width: 100%; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
color: white; |
||||
} |
||||
|
||||
.ansDiv{ |
||||
float: left; |
||||
margin-left: 100px; |
||||
width: 80%; |
||||
} |
||||
|
||||
.ansAdd{ |
||||
border: none; |
||||
height: 25px; |
||||
background-color: white; |
||||
font-weight: bold; |
||||
width: auto; |
||||
color: black; |
||||
cursor: pointer; |
||||
border-radius: 10px; |
||||
} |
||||
|
||||
.newAnswer{ |
||||
float: left; |
||||
width: 100%; |
||||
margin: 3px; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
} |
||||
|
||||
.ansSpan{ |
||||
border: none; |
||||
color: white; |
||||
font-size: 14px; |
||||
float: left; |
||||
margin: 0 3px; |
||||
width: 20px; |
||||
} |
||||
|
||||
.ansSpanDisplay{ |
||||
color: white; |
||||
font-size: 14px; |
||||
float: left; |
||||
font-weight: bold; |
||||
} |
||||
|
||||
.ansContent{ |
||||
padding: 1px 3px 3px 3px; |
||||
margin-left: 5px; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
font-size: small; |
||||
width: 80%; |
||||
float: left; |
||||
border: 3px solid #ccc; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
-moz-box-shadow: #dadada -1px 0 4px; |
||||
-webkit-box-shadow: #dadada -1px 0 4px; |
||||
box-shadow: #dadada -1px 0 4px; |
||||
color: white; |
||||
} |
||||
|
||||
.ansContentDisplay{ |
||||
padding: 1px 3px 3px 3px; |
||||
margin-left: 5px; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
font-size: small; |
||||
font-weight: bold; |
||||
width: 80%; |
||||
float: left; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
color: white; |
||||
} |
||||
|
||||
.ansDelete{ |
||||
width: 25px; |
||||
height: 25px; |
||||
float: left; |
||||
border: none; |
||||
background-image: url(../images/bigBlackClose.png); |
||||
background-repeat: no-repeat; |
||||
background-position: 45% 50%; |
||||
background-color: white; |
||||
cursor: pointer; |
||||
margin: 0 5px; |
||||
border-radius: 15px; |
||||
} |
||||
|
||||
.qstOptChoice{ |
||||
width: 80%; |
||||
margin: 10px 10%; |
||||
float: left; |
||||
background-color: #F3F3F2; |
||||
border-top-width: 1px; |
||||
border-right-width: 1px; |
||||
border-bottom-width: 1px; |
||||
border-left-width: 1px; |
||||
border-top-style: solid; |
||||
border-right-style: solid; |
||||
border-bottom-style: solid; |
||||
border-left-style: solid; |
||||
border-top-color: #ECECEB; |
||||
border-right-color: #ECECEB; |
||||
border-bottom-color: #ECECEB; |
||||
border-left-color: #ECECEB; |
||||
border-top-left-radius: 5px 5px; |
||||
border-top-right-radius: 5px 5px; |
||||
border-bottom-right-radius: 5px 5px; |
||||
border-bottom-left-radius: 5px 5px; |
||||
-webkit-box-shadow: #dededd 0 0 2px inset; |
||||
padding: 0; |
||||
} |
||||
|
||||
.optDescImg{ |
||||
padding: 2px; |
||||
margin: 5px; |
||||
background: url(../images/tool.png) -0px -0px no-repeat; |
||||
float: left; |
||||
margin-left: 20px; |
||||
width: 56px; |
||||
height: 51px; |
||||
} |
||||
|
||||
.optDescText{ |
||||
text-align: center; |
||||
width: 70%; |
||||
color: #666666; |
||||
float: left; |
||||
font-size: small; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
margin: 3px 5px; |
||||
padding: 5px; |
||||
} |
||||
|
||||
.type{ |
||||
float: left; |
||||
margin: 10px; |
||||
padding: 5px; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
-moz-box-shadow: #dadada -1px 0 4px; |
||||
-webkit-box-shadow: #dadada -1px 0 4px; |
||||
box-shadow: #dadada -1px 0 4px; |
||||
} |
||||
|
||||
.contentType{ |
||||
width: 100%; |
||||
padding: 0; |
||||
margin: 0; |
||||
background-color: white; |
||||
border-bottom: 1px solid #DFDFDE; |
||||
border-top-left-radius: 5px 5px; |
||||
border-top-right-radius: 5px 5px; |
||||
} |
||||
|
||||
.divType1, .divType2, .divType3 { |
||||
width: 122px; |
||||
height: 97px; |
||||
padding: 0 15px; |
||||
margin-left: 30px; |
||||
} |
||||
|
||||
.divType1{ |
||||
background: url(../images/1thOption.png)-0px -0px no-repeat; |
||||
} |
||||
|
||||
.divType2{ |
||||
background: url(../images/2thOption.png)-0px -0px no-repeat; |
||||
} |
||||
|
||||
.divType3{ |
||||
background: url(../images/3thOption.png)-0px -0px no-repeat; |
||||
} |
||||
|
||||
.textType{ |
||||
width: 160px; |
||||
font-size: small; |
||||
font-family: Verdana,Arial,Helvetica,sans-serif; |
||||
color: #666; |
||||
padding: 3px; |
||||
margin-left: 20px; |
||||
} |
||||
|
||||
.radioDiv{ |
||||
background-color: #F5F5F5; |
||||
border-top: 1px solid white; |
||||
width: 100%; |
||||
padding: 0; |
||||
margin: 0; |
||||
height: 30px; |
||||
border-bottom-right-radius: 5px 5px; |
||||
border-bottom-left-radius: 5px 5px; |
||||
} |
||||
|
||||
.radioType{ |
||||
float: right; |
||||
margin: 2px; |
||||
padding: 3px; |
||||
} |
||||
|
||||
.popupWordInfo{ |
||||
position: absolute; |
||||
display: none; |
||||
width: 100px; |
||||
height: 20px; |
||||
top: 0; |
||||
left: 0; |
||||
text-align: center; |
||||
border: 1px solid #B9B9B9; |
||||
background-color: #eaebeb; |
||||
color: black; |
||||
-webkit-border-radius: 5px; |
||||
border-radius: 5px; |
||||
-webkit-box-shadow: #dadada -1px 0 4px; |
||||
box-shadow: #dadada -1px 0 4px; |
||||
z-index: 100; |
||||
} |
||||
|
||||
#answerText{ |
||||
padding: 3px; |
||||
-webkit-border-radius: 3px; |
||||
border-radius: 3px; |
||||
} |
||||
|
||||
/*new design*/ |
||||
|
||||
.body_table{ |
||||
width: 100%; |
||||
height: 100%; |
||||
border-spacing: 0; |
||||
} |
||||
|
||||
.selected{ |
||||
|
||||
} |
||||
|
||||
/*top*/ |
||||
|
||||
.b_top_left{ |
||||
width: 54px; |
||||
background-image: url(../images/top_left.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_top_right{ |
||||
width: 54px; |
||||
background-image: url(../images/top_right.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_top_center{ |
||||
height: 54px; |
||||
background-image: url(../images/top.png); |
||||
background-repeat: repeat-x; |
||||
} |
||||
|
||||
/*bottom*/ |
||||
|
||||
.b_bottom_left{ |
||||
width: 54px; |
||||
background-image: url(../images/bottom_left.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_bottom_right{ |
||||
width: 54px; |
||||
background-image: url(../images/bottom_right.png); |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.b_bottom_center{ |
||||
background-image: url(../images/bottom.png); |
||||
background-repeat: repeat-x; |
||||
} |
||||
|
||||
/*center*/ |
||||
|
||||
.b_center_left{ |
||||
width: 54px; |
||||
background-image: url(../images/left.png); |
||||
background-repeat: repeat-y; |
||||
} |
||||
|
||||
.b_center_right{ |
||||
width: 54px; |
||||
background-image: url(../images/right.png); |
||||
background-repeat: repeat-y; |
||||
} |
||||
|
||||
#data{ |
||||
width: 100%; |
||||
height: 100%; |
||||
min-height: 250px; |
||||
overflow: auto; |
||||
} |
||||
|
||||
#wgt_name{ |
||||
height: 44px; |
||||
width: 200px; |
||||
margin: 10px 10px 0 10px; |
||||
padding: 0; |
||||
float: left; |
||||
font-family: "Lobster13Regular"; |
||||
font-size: 24px; |
||||
color: #8c5730; |
||||
} |
||||
|
||||
#wgt_reload, #wgt_edit, #wgt_display{ |
||||
cursor: pointer; |
||||
width: 80px; |
||||
height: 44px; |
||||
margin: 10px 10px 0 0; |
||||
float: right; |
||||
font-family: "Lobster13Regular"; |
||||
font-size: 24px; |
||||
color: #8c5730; |
||||
} |
||||
|
||||
#wgt_display{ |
||||
width: 100px; |
||||
padding-left: 40px; |
||||
background-image: url(../images/slate-edit.png); |
||||
background-repeat: no-repeat; |
||||
background-position: top 0; |
||||
display: none; |
||||
} |
||||
|
||||
#wgt_edit{ |
||||
width: 100px; |
||||
padding-left: 40px; |
||||
background-image: url(../images/slate-edit.png); |
||||
background-repeat: no-repeat; |
||||
background-position: top 0; |
||||
} |
||||
|
||||
#wgt_reload{ |
||||
padding-left: 40px; |
||||
background-image: url(../images/slate-toolbar-reload.png); |
||||
background-repeat: no-repeat; |
||||
background-position: top 0; |
||||
} |
||||
|
||||
.style_select{ |
||||
width: 120px; |
||||
font-family: "Lobster13Regular"; |
||||
font-size: 24px; |
||||
float: right; |
||||
margin: 10px 20px 0 0; |
||||
border-radius: 10px; |
||||
background-image: url(../images/ar_down.png); |
||||
background-color: #d4aa79; |
||||
color: #8c5730; |
||||
background-position: 105px 11px; |
||||
background-repeat: no-repeat; |
||||
-webkit-appearance: menulist-text; |
||||
display: none; |
||||
} |
||||
|
||||
.btl_pad{ |
||||
background-image: url(../images/pad-top-left.png) !important; |
||||
} |
||||
|
||||
.btc_pad{ |
||||
background-image: url(../images/pad-top.png) !important; |
||||
} |
||||
|
||||
.btr_pad{ |
||||
background-image: url(../images/pad-top-right.png) !important; |
||||
} |
||||
|
||||
.bcl_pad{ |
||||
background-image: url(../images/pad-left.png) !important; |
||||
} |
||||
|
||||
.bcr_pad{ |
||||
background-image: url(../images/pad-right.png) !important; |
||||
} |
||||
|
||||
.bbl_pad{ |
||||
background-image: url(../images/pad-bottom-left.png) !important; |
||||
} |
||||
|
||||
.bbc_pad{ |
||||
background-image: url(../images/pad-bottom.png) !important; |
||||
} |
||||
|
||||
.bbr_pad{ |
||||
background-image: url(../images/pad-bottom-right.png) !important; |
||||
} |
||||
|
||||
.pad_color{ |
||||
color: white !important; |
||||
} |
||||
|
||||
.pad_reload{ |
||||
background-image: url(../images/slate-toolbar-reload-white.png) !important; |
||||
} |
||||
|
||||
.pad_edit{ |
||||
background-image: url(../images/slate-display.png) !important; |
||||
} |
||||
|
||||
.pad_select{ |
||||
background-color: black !important; |
||||
color: white !important; |
||||
background-image: url(../images/ar_down_white.png) !important; |
||||
} |
After Width: | Height: | Size: 165 KiB |
@ -0,0 +1,91 @@ |
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1. |
||||
This license is copied below, and is also available with a FAQ at: |
||||
http://scripts.sil.org/OFL |
||||
|
||||
|
||||
----------------------------------------------------------- |
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 |
||||
----------------------------------------------------------- |
||||
|
||||
PREAMBLE |
||||
The goals of the Open Font License (OFL) are to stimulate worldwide |
||||
development of collaborative font projects, to support the font creation |
||||
efforts of academic and linguistic communities, and to provide a free and |
||||
open framework in which fonts may be shared and improved in partnership |
||||
with others. |
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and |
||||
redistributed freely as long as they are not sold by themselves. The |
||||
fonts, including any derivative works, can be bundled, embedded, |
||||
redistributed and/or sold with any software provided that any reserved |
||||
names are not used by derivative works. The fonts and derivatives, |
||||
however, cannot be released under any other type of license. The |
||||
requirement for fonts to remain under this license does not apply |
||||
to any document created using the fonts or their derivatives. |
||||
|
||||
DEFINITIONS |
||||
"Font Software" refers to the set of files released by the Copyright |
||||
Holder(s) under this license and clearly marked as such. This may |
||||
include source files, build scripts and documentation. |
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the |
||||
copyright statement(s). |
||||
|
||||
"Original Version" refers to the collection of Font Software components as |
||||
distributed by the Copyright Holder(s). |
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting, |
||||
or substituting -- in part or in whole -- any of the components of the |
||||
Original Version, by changing formats or by porting the Font Software to a |
||||
new environment. |
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical |
||||
writer or other person who contributed to the Font Software. |
||||
|
||||
PERMISSION & CONDITIONS |
||||
Permission is hereby granted, free of charge, to any person obtaining |
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify, |
||||
redistribute, and sell modified and unmodified copies of the Font |
||||
Software, subject to the following conditions: |
||||
|
||||
1) Neither the Font Software nor any of its individual components, |
||||
in Original or Modified Versions, may be sold by itself. |
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled, |
||||
redistributed and/or sold with any software, provided that each copy |
||||
contains the above copyright notice and this license. These can be |
||||
included either as stand-alone text files, human-readable headers or |
||||
in the appropriate machine-readable metadata fields within text or |
||||
binary files as long as those fields can be easily viewed by the user. |
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font |
||||
Name(s) unless explicit written permission is granted by the corresponding |
||||
Copyright Holder. This restriction only applies to the primary font name as |
||||
presented to the users. |
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font |
||||
Software shall not be used to promote, endorse or advertise any |
||||
Modified Version, except to acknowledge the contribution(s) of the |
||||
Copyright Holder(s) and the Author(s) or with their explicit written |
||||
permission. |
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole, |
||||
must be distributed entirely under this license, and must not be |
||||
distributed under any other license. The requirement for fonts to |
||||
remain under this license does not apply to any document created |
||||
using the Font Software. |
||||
|
||||
TERMINATION |
||||
This license becomes null and void if any of the above conditions are |
||||
not met. |
||||
|
||||
DISCLAIMER |
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF |
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT |
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE |
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL |
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM |
||||
OTHER DEALINGS IN THE FONT SOFTWARE. |
@ -0,0 +1,33 @@ |
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
||||
<head> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
||||
|
||||
<title>Font Face Demo</title> |
||||
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8"> |
||||
<style type="text/css" media="screen"> |
||||
h1.fontface {font: 60px/68px 'Lobster13Regular', Arial, sans-serif;letter-spacing: 0;} |
||||
|
||||
p.style1 {font: 18px/27px 'Lobster13Regular', Arial, sans-serif;} |
||||
|
||||
#container { |
||||
width: 800px; |
||||
margin-left: auto; |
||||
margin-right: auto; |
||||
} |
||||
</style> |
||||
</head> |
||||
|
||||
<body> |
||||
<div id="container"> |
||||
<h1 class="fontface">Font-face Demo for the Lobster Font</h1> |
||||
|
||||
|
||||
|
||||
<p class="style1">Lobster Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
||||
|
||||
</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,16 @@ |
||||
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 26, 2012 06:03:05 AM America/New_York */ |
||||
|
||||
|
||||
|
||||
@font-face { |
||||
font-family: 'Lobster13Regular'; |
||||
src: url('Lobster_1.3-webfont.eot'); |
||||
src: url('Lobster_1.3-webfont.eot?#iefix') format('embedded-opentype'), |
||||
url('Lobster_1.3-webfont.woff') format('woff'), |
||||
url('Lobster_1.3-webfont.ttf') format('truetype'), |
||||
url('Lobster_1.3-webfont.svg#Lobster13Regular') format('svg'); |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
|
||||
} |
||||
|
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 92 KiB |