Version Description
Changed: Featured themes page.
Download this release
Release Info
Developer | webdorado |
Plugin | Calendar by WD – Responsive Event Calendar |
Version | 1.5.45 |
Comparing to | |
See all releases |
Code changes from version 1.5.44 to 1.5.45
- calendar.php +275 -138
- images/catalog.jpg +0 -0
- images/contact.maker.jpg +0 -0
- images/contacts.jpg +0 -0
- images/download.jpg +0 -0
- images/facebook.jpg +0 -0
- images/faq.jpg +0 -0
- images/flash.calendar.jpg +0 -0
- images/folder.menu.jpg +0 -0
- images/form.jpg +0 -0
- images/player.jpg +0 -0
- images/spider.calendar.jpg +0 -0
- images/themes/best_magazine.jpg +0 -0
- images/themes/business_elite.jpg +0 -0
- images/themes/business_world.jpg +0 -0
- images/themes/down.png +0 -0
- images/themes/news_magazine.jpg +0 -0
- images/themes/portfolio_gallery.jpg +0 -0
- images/themes/sauron.jpg +0 -0
- images/wdhny.jpg +0 -0
- images/zoom.jpg +0 -0
- jscolor/arrow.gif +0 -0
- jscolor/cross.gif +0 -0
- jscolor/demo.html +12 -0
- jscolor/hs.png +0 -0
- jscolor/hv.png +0 -0
- jscolor/jscolor.js +926 -0
- languages/sp_calendar-sl_SI.mo +0 -0
- languages/sp_calendar-sl_SI.po +351 -0
- readme.txt +4 -1
- responsive.css +25 -0
- responsive.js +24 -0
calendar.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
Plugin Name: Spider Event Calendar
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-calendar.html
|
5 |
Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
|
6 |
-
Version: 1.5.
|
7 |
Author: https://web-dorado.com/
|
8 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
10 |
-
$wd_spider_calendar_version="1.5.
|
11 |
// LANGUAGE localization.
|
12 |
function sp_calendar_language_load() {
|
13 |
load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
|
@@ -1308,142 +1308,279 @@ function calendar_Featured_themes_styles() {
|
|
1308 |
wp_enqueue_style("Featured_themes", plugins_url("featured_themes.css", __FILE__), array(), $wd_spider_calendar_version);
|
1309 |
}
|
1310 |
|
1311 |
-
function calendar_Featured_themes() {
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1447 |
<?php }
|
1448 |
|
1449 |
add_action('init', 'spider_calendar_export');
|
3 |
Plugin Name: Spider Event Calendar
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-calendar.html
|
5 |
Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
|
6 |
+
Version: 1.5.45
|
7 |
Author: https://web-dorado.com/
|
8 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
10 |
+
$wd_spider_calendar_version="1.5.45";
|
11 |
// LANGUAGE localization.
|
12 |
function sp_calendar_language_load() {
|
13 |
load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
|
1308 |
wp_enqueue_style("Featured_themes", plugins_url("featured_themes.css", __FILE__), array(), $wd_spider_calendar_version);
|
1309 |
}
|
1310 |
|
1311 |
+
function calendar_Featured_themes() {
|
1312 |
+
|
1313 |
+
$image_url = plugins_url("/images/themes/", __FILE__);
|
1314 |
+
$slug="spider-event-calendar";
|
1315 |
+
$demo_url = 'http://themedemo.web-dorado.com/';
|
1316 |
+
$site_url = 'https://web-dorado.com/wordpress-themes/';
|
1317 |
+
?>
|
1318 |
+
<style>
|
1319 |
+
@import url(https://fonts.googleapis.com/css?family=Oswald);
|
1320 |
+
|
1321 |
+
#main_featured_themes_page #featured-themes-list {
|
1322 |
+
position:relative;
|
1323 |
+
margin:0px auto;
|
1324 |
+
height:auto;
|
1325 |
+
display:table;
|
1326 |
+
list-style:none;
|
1327 |
+
text-align: center;
|
1328 |
+
width: 100%;
|
1329 |
+
}
|
1330 |
+
#main_featured_themes_page #featured-themes-list li {
|
1331 |
+
display: inline-table;
|
1332 |
+
width: 300px;
|
1333 |
+
margin: 20px 10px 0px 10px;
|
1334 |
+
background: #FFFFFF;
|
1335 |
+
border-right: 3px solid #E5E5E5;
|
1336 |
+
border-bottom: 3px solid #E5E5E5;
|
1337 |
+
position: relative;
|
1338 |
+
}
|
1339 |
+
@media screen and (min-width: 1600px) {
|
1340 |
+
#main_featured_themes_page #featured-themes-list li {
|
1341 |
+
width:400px;
|
1342 |
+
}
|
1343 |
+
|
1344 |
+
}
|
1345 |
+
#main_featured_themes_page .theme_img img {
|
1346 |
+
max-width: 100%;
|
1347 |
+
}
|
1348 |
+
#main_featured_themes_page .theme_img {
|
1349 |
+
display: inline-block;
|
1350 |
+
overflow: hidden;
|
1351 |
+
outline: 1px solid #D6D1D1;
|
1352 |
+
position:relative;
|
1353 |
+
/*height: 168px; */
|
1354 |
+
}
|
1355 |
+
#main_featured_themes_page #featured-themes-list li .title {
|
1356 |
+
width: 91%;
|
1357 |
+
text-align: center;
|
1358 |
+
margin: 0 auto;
|
1359 |
+
}
|
1360 |
+
#main_featured_themes_page {
|
1361 |
+
font-family: Oswald;
|
1362 |
+
}
|
1363 |
+
#main_featured_themes_page #featured-themes-list li .title .heading {
|
1364 |
+
display: block;
|
1365 |
+
position: relative;
|
1366 |
+
font-size: 17px;
|
1367 |
+
color: #666666;
|
1368 |
+
margin: 13px 0px 13px 0px;
|
1369 |
+
text-transform: uppercase;
|
1370 |
+
}
|
1371 |
+
#main_featured_themes_page #featured-themes-list li .title p {
|
1372 |
+
font-size:14px;
|
1373 |
+
color:#444;
|
1374 |
+
margin-left:20px;
|
1375 |
+
}
|
1376 |
+
#main_featured_themes_page #featured-themes-list li .description {
|
1377 |
+
height:130px;
|
1378 |
+
width: 90%;
|
1379 |
+
margin: 0 auto;
|
1380 |
+
}
|
1381 |
+
#main_featured_themes_page #featured-themes-list li .description p {
|
1382 |
+
text-align: center;
|
1383 |
+
width: 100%;
|
1384 |
+
color: #666666;
|
1385 |
+
font-family: "Open Sans",sans-serif;
|
1386 |
+
font-size: 14px;
|
1387 |
+
}
|
1388 |
+
#main_featured_themes_page #featured-themes-list li .links {
|
1389 |
+
border-top: 1px solid #d8d8d8;
|
1390 |
+
width: 90%;
|
1391 |
+
margin: 0 auto;
|
1392 |
+
font-size: 14px;
|
1393 |
+
line-height: 40px;
|
1394 |
+
font-weight: bolder;
|
1395 |
+
text-align: center;
|
1396 |
+
padding-top: 9px;
|
1397 |
+
padding-bottom: 12px;
|
1398 |
+
}
|
1399 |
+
#main_featured_themes_page .page_header h1 {
|
1400 |
+
margin: 0px;
|
1401 |
+
font-family: Segoe UI;
|
1402 |
+
padding-bottom: 15px;
|
1403 |
+
color: rgb(111, 111, 111);
|
1404 |
+
font-size: 24px;
|
1405 |
+
text-align:center;
|
1406 |
+
}
|
1407 |
+
#main_featured_themes_page .page_header {
|
1408 |
+
height: 40px;
|
1409 |
+
padding: 22px 0px 0px 0px;
|
1410 |
+
margin-bottom: 15px;
|
1411 |
+
/*border-bottom: rgb(111, 111, 111) solid 1px;*/
|
1412 |
+
}
|
1413 |
+
#main_featured_themes_page #featured-themes-list li a {
|
1414 |
+
outline: none;
|
1415 |
+
line-height: 29px;
|
1416 |
+
text-decoration: none;
|
1417 |
+
color: #134d68;
|
1418 |
+
font-family: "Open Sans",sans-serif;
|
1419 |
+
text-shadow: 1px 0;
|
1420 |
+
display: inline-block;
|
1421 |
+
font-size: 15px;
|
1422 |
+
}
|
1423 |
+
#main_featured_themes_page #featured-themes-list li a.demo {
|
1424 |
+
color: #ffffff;
|
1425 |
+
background: #F47629;
|
1426 |
+
border-radius: 3px;
|
1427 |
+
width: 76px;
|
1428 |
+
text-align:center;
|
1429 |
+
margin-right: 12px;
|
1430 |
+
}
|
1431 |
+
#main_featured_themes_page #featured-themes-list li a.download {
|
1432 |
+
padding-right: 30px;
|
1433 |
+
background:url(<?php echo $image_url; ?>down.png) no-repeat right;
|
1434 |
+
}
|
1435 |
+
#main_featured_themes_page .featured_header{
|
1436 |
+
background: #11465F;
|
1437 |
+
border-right: 3px solid #E5E5E5;
|
1438 |
+
border-bottom: 3px solid #E5E5E5;
|
1439 |
+
position: relative;
|
1440 |
+
padding: 20px 0;
|
1441 |
+
}
|
1442 |
+
#main_featured_themes_page .featured_header .try-now {
|
1443 |
+
text-align: center;
|
1444 |
+
}
|
1445 |
+
#main_featured_themes_page .featured_header .try-now span {
|
1446 |
+
display: inline-block;
|
1447 |
+
padding: 7px 16px;
|
1448 |
+
background: #F47629;
|
1449 |
+
border-radius: 10px;
|
1450 |
+
color: #ffffff;
|
1451 |
+
font-size: 23px;
|
1452 |
+
}
|
1453 |
+
#main_featured_themes_page .featured_container {
|
1454 |
+
position: relative;
|
1455 |
+
width: 90%;
|
1456 |
+
margin: 15px auto 0px auto;
|
1457 |
+
}
|
1458 |
+
#main_featured_themes_page .featured_container .old_price{
|
1459 |
+
color: rgba(180, 180, 180, 0.3);
|
1460 |
+
text-decoration: line-through;
|
1461 |
+
font-family: Oswald;
|
1462 |
+
}
|
1463 |
+
#main_featured_themes_page .featured_container .get_themes{
|
1464 |
+
color: #FFFFFF;
|
1465 |
+
height: 85px;
|
1466 |
+
margin: 0;
|
1467 |
+
background-size: 95% 100%;
|
1468 |
+
background-position: center;
|
1469 |
+
line-height: 60px;
|
1470 |
+
font-size: 45px;
|
1471 |
+
text-align: center;
|
1472 |
+
letter-spacing: 3px;
|
1473 |
+
}
|
1474 |
+
#main_featured_themes_page .featured_header h1{
|
1475 |
+
font-size: 45px;
|
1476 |
+
text-align: center;
|
1477 |
+
color: #ffffff;
|
1478 |
+
letter-spacing: 3px;
|
1479 |
+
line-height: 10px;
|
1480 |
+
}
|
1481 |
+
#main_featured_themes_page .featured_header a{
|
1482 |
+
text-decoration: none;
|
1483 |
+
}
|
1484 |
+
@media screen and (max-width: 1035px) {
|
1485 |
+
#main_featured_themes_page .featured_header h1{
|
1486 |
+
font-size: 37px;
|
1487 |
+
line-height: 0;
|
1488 |
+
}
|
1489 |
+
}
|
1490 |
+
@media screen and (max-width: 835px) {
|
1491 |
+
#main_featured_themes_page .get_themes span{
|
1492 |
+
display: none;
|
1493 |
+
}
|
1494 |
+
}
|
1495 |
+
@media screen and (max-width: 435px) {
|
1496 |
+
#main_featured_themes_page .featured_header h1 {
|
1497 |
+
font-size: 20px;
|
1498 |
+
line-height: 17px;
|
1499 |
+
}
|
1500 |
+
}
|
1501 |
+
</style>
|
1502 |
+
|
1503 |
+
<?php
|
1504 |
+
$WDWThemes = array(
|
1505 |
+
"business_elite" => array(
|
1506 |
+
"title" => "Business Elite",
|
1507 |
+
"description" => __("Business Elite is a robust parallax theme for business websites. The theme uses smooth transitions and many functional sections."),
|
1508 |
+
"link" => "business-elite.html",
|
1509 |
+
"demo" => "theme-businesselite",
|
1510 |
+
"image" => "business_elite.jpg"
|
1511 |
+
),
|
1512 |
+
"portfolio" => array(
|
1513 |
+
"title" => "Portfolio Gallery",
|
1514 |
+
"description" => __("Portfolio Gallery helps to display images using various color schemes and layouts combined with elegant fonts and content parts."),
|
1515 |
+
"link" => "portfolio-gallery.html",
|
1516 |
+
"demo" => "theme-portfoliogallery",
|
1517 |
+
"image" => "portfolio_gallery.jpg"
|
1518 |
+
),
|
1519 |
+
"sauron" => array(
|
1520 |
+
"title" => "Sauron",
|
1521 |
+
"description" => __("Sauron is a multipurpose parallax theme, which uses multiple interactive sections designed for the client-engagement."),
|
1522 |
+
"link" => "sauron.html",
|
1523 |
+
"demo" => "theme-sauron",
|
1524 |
+
"image" => "sauron.jpg"
|
1525 |
+
),
|
1526 |
+
"business_world" => array(
|
1527 |
+
"title" => "Business World",
|
1528 |
+
"description" => __("Business World is an innovative WordPress theme great for Business websites."),
|
1529 |
+
"link" => "business-world.html",
|
1530 |
+
"demo" => "theme-businessworld",
|
1531 |
+
"image" => "business_world.jpg"
|
1532 |
+
),
|
1533 |
+
"best_magazine" => array(
|
1534 |
+
"title" => "Best Magazine",
|
1535 |
+
"description" => __("Best Magazine is an ultimate selection when you are dealing with multi-category news websites."),
|
1536 |
+
"link" => "best-magazine.html",
|
1537 |
+
"demo" => "theme-bestmagazine",
|
1538 |
+
"image" => "best_magazine.jpg"
|
1539 |
+
),
|
1540 |
+
"magazine" => array(
|
1541 |
+
"title" => "News Magazine",
|
1542 |
+
"description" => __("Magazine theme is a perfect solution when creating news and informational websites. It comes with a wide range of layout options."),
|
1543 |
+
"link" => "news-magazine.html",
|
1544 |
+
"demo" => "theme-newsmagazine",
|
1545 |
+
"image" => "news_magazine.jpg"
|
1546 |
+
)
|
1547 |
+
);
|
1548 |
+
?>
|
1549 |
+
<div id="main_featured_themes_page">
|
1550 |
+
<div class="featured_container">
|
1551 |
+
<div class="page_header">
|
1552 |
+
<h1><?php echo __("Featured Themes"); ?></h1>
|
1553 |
+
</div>
|
1554 |
+
<div class="featured_header">
|
1555 |
+
<a target="_blank" href="https://web-dorado.com/wordpress-themes.html?source=<?php echo $slug; ?>">
|
1556 |
+
<h1><?php echo __("WORDPRESS THEMES"); ?></h1>
|
1557 |
+
<h2 class="get_themes"><?php echo __("ALL FOR $40 ONLY "); ?><span>- <?php echo __("SAVE 80%"); ?></span></h2>
|
1558 |
+
<div class="try-now">
|
1559 |
+
<span><?php echo __("TRY NOW"); ?></span>
|
1560 |
+
</div>
|
1561 |
+
</a>
|
1562 |
+
</div>
|
1563 |
+
<ul id="featured-themes-list">
|
1564 |
+
<?php foreach($WDWThemes as $key=>$WDWTheme) : ?>
|
1565 |
+
<li class="<?php echo $key; ?>">
|
1566 |
+
<div class="theme_img">
|
1567 |
+
<img src="<?php echo $image_url . $WDWTheme["image"]; ?>">
|
1568 |
+
</div>
|
1569 |
+
<div class="title">
|
1570 |
+
<h3 class="heading"><?php echo $WDWTheme["title"]; ?></h3>
|
1571 |
+
</div>
|
1572 |
+
<div class="description">
|
1573 |
+
<p><?php echo $WDWTheme["description"]; ?></p>
|
1574 |
+
</div>
|
1575 |
+
<div class="links">
|
1576 |
+
<a target="_blank" href="<?php echo $demo_url . $WDWTheme["demo"]."?source=".$slug; ?>" class="demo"><?php echo __("Demo"); ?></a>
|
1577 |
+
<a target="_blank" href="<?php echo $site_url . $WDWTheme["link"]."?source=".$slug; ?>" class="download"><?php echo __("Free Download"); ?></a>
|
1578 |
+
</div>
|
1579 |
+
</li>
|
1580 |
+
<?php endforeach; ?>
|
1581 |
+
</ul>
|
1582 |
+
</div>
|
1583 |
+
</div>
|
1584 |
<?php }
|
1585 |
|
1586 |
add_action('init', 'spider_calendar_export');
|
images/catalog.jpg
ADDED
Binary file
|
images/contact.maker.jpg
ADDED
Binary file
|
images/contacts.jpg
ADDED
Binary file
|
images/download.jpg
ADDED
Binary file
|
images/facebook.jpg
ADDED
Binary file
|
images/faq.jpg
ADDED
Binary file
|
images/flash.calendar.jpg
ADDED
Binary file
|
images/folder.menu.jpg
ADDED
Binary file
|
images/form.jpg
ADDED
Binary file
|
images/player.jpg
ADDED
Binary file
|
images/spider.calendar.jpg
ADDED
Binary file
|
images/themes/best_magazine.jpg
ADDED
Binary file
|
images/themes/business_elite.jpg
ADDED
Binary file
|
images/themes/business_world.jpg
ADDED
Binary file
|
images/themes/down.png
ADDED
Binary file
|
images/themes/news_magazine.jpg
ADDED
Binary file
|
images/themes/portfolio_gallery.jpg
ADDED
Binary file
|
images/themes/sauron.jpg
ADDED
Binary file
|
images/wdhny.jpg
ADDED
Binary file
|
images/zoom.jpg
ADDED
Binary file
|
jscolor/arrow.gif
ADDED
Binary file
|
jscolor/cross.gif
ADDED
Binary file
|
jscolor/demo.html
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<title>jscolor demo</title>
|
4 |
+
</head>
|
5 |
+
<body>
|
6 |
+
|
7 |
+
<script type="text/javascript" src="jscolor.js"></script>
|
8 |
+
|
9 |
+
Click here: <input class="color" value="66ff00">
|
10 |
+
|
11 |
+
</body>
|
12 |
+
</html>
|
jscolor/hs.png
ADDED
Binary file
|
jscolor/hv.png
ADDED
Binary file
|
jscolor/jscolor.js
ADDED
@@ -0,0 +1,926 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jscolor, JavaScript Color Picker
|
3 |
+
*
|
4 |
+
* @version 1.3.11
|
5 |
+
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
|
6 |
+
* @author Jan Odvarko, http://odvarko.cz
|
7 |
+
* @created 2008-06-15
|
8 |
+
* @updated 2011-11-07
|
9 |
+
* @link http://jscolor.com
|
10 |
+
*/
|
11 |
+
|
12 |
+
|
13 |
+
var jscolor = {
|
14 |
+
|
15 |
+
|
16 |
+
dir : '', // location of jscolor directory (leave empty to autodetect)
|
17 |
+
bindClass : 'color', // class name
|
18 |
+
binding : true, // automatic binding via <input class="...">
|
19 |
+
preloading : true, // use image preloading?
|
20 |
+
|
21 |
+
|
22 |
+
install : function() {
|
23 |
+
jscolor.addEvent(window, 'load', jscolor.init);
|
24 |
+
},
|
25 |
+
|
26 |
+
|
27 |
+
init : function() {
|
28 |
+
if(jscolor.binding) {
|
29 |
+
jscolor.bind();
|
30 |
+
}
|
31 |
+
if(jscolor.preloading) {
|
32 |
+
jscolor.preload();
|
33 |
+
}
|
34 |
+
},
|
35 |
+
|
36 |
+
|
37 |
+
getDir : function() {
|
38 |
+
if(!jscolor.dir) {
|
39 |
+
var detected = jscolor.detectDir();
|
40 |
+
jscolor.dir = detected!==false ? detected : 'jscolor/';
|
41 |
+
}
|
42 |
+
return jscolor.dir;
|
43 |
+
},
|
44 |
+
|
45 |
+
|
46 |
+
detectDir : function() {
|
47 |
+
var base = location.href;
|
48 |
+
|
49 |
+
var e = document.getElementsByTagName('base');
|
50 |
+
for(var i=0; i<e.length; i+=1) {
|
51 |
+
if(e[i].href) { base = e[i].href; }
|
52 |
+
}
|
53 |
+
|
54 |
+
var e = document.getElementsByTagName('script');
|
55 |
+
for(var i=0; i<e.length; i+=1) {
|
56 |
+
if(e[i].src && /(^|\/)jscolor\.js([?#].*)?$/i.test(e[i].src)) {
|
57 |
+
var src = new jscolor.URI(e[i].src);
|
58 |
+
var srcAbs = src.toAbsolute(base);
|
59 |
+
srcAbs.path = srcAbs.path.replace(/[^\/]+$/, ''); // remove filename
|
60 |
+
srcAbs.query = null;
|
61 |
+
srcAbs.fragment = null;
|
62 |
+
return srcAbs.toString();
|
63 |
+
}
|
64 |
+
}
|
65 |
+
return false;
|
66 |
+
},
|
67 |
+
|
68 |
+
|
69 |
+
bind : function() {
|
70 |
+
var matchClass = new RegExp('(^|\\s)('+jscolor.bindClass+')\\s*(\\{[^}]*\\})?', 'i');
|
71 |
+
var e = document.getElementsByTagName('input');
|
72 |
+
for(var i=0; i<e.length; i+=1) {
|
73 |
+
var m;
|
74 |
+
if(!e[i].color && e[i].className && (m = e[i].className.match(matchClass))) {
|
75 |
+
var prop = {};
|
76 |
+
if(m[3]) {
|
77 |
+
try {
|
78 |
+
eval('prop='+m[3]);
|
79 |
+
} catch(eInvalidProp) {}
|
80 |
+
}
|
81 |
+
e[i].color = new jscolor.color(e[i], prop);
|
82 |
+
}
|
83 |
+
}
|
84 |
+
},
|
85 |
+
|
86 |
+
|
87 |
+
preload : function() {
|
88 |
+
for(var fn in jscolor.imgRequire) {
|
89 |
+
if(jscolor.imgRequire.hasOwnProperty(fn)) {
|
90 |
+
jscolor.loadImage(fn);
|
91 |
+
}
|
92 |
+
}
|
93 |
+
},
|
94 |
+
|
95 |
+
|
96 |
+
images : {
|
97 |
+
pad : [ 181, 101 ],
|
98 |
+
sld : [ 16, 101 ],
|
99 |
+
cross : [ 15, 15 ],
|
100 |
+
arrow : [ 7, 11 ]
|
101 |
+
},
|
102 |
+
|
103 |
+
|
104 |
+
imgRequire : {},
|
105 |
+
imgLoaded : {},
|
106 |
+
|
107 |
+
|
108 |
+
requireImage : function(filename) {
|
109 |
+
jscolor.imgRequire[filename] = true;
|
110 |
+
},
|
111 |
+
|
112 |
+
|
113 |
+
loadImage : function(filename) {
|
114 |
+
if(!jscolor.imgLoaded[filename]) {
|
115 |
+
jscolor.imgLoaded[filename] = new Image();
|
116 |
+
jscolor.imgLoaded[filename].src = jscolor.getDir()+filename;
|
117 |
+
}
|
118 |
+
},
|
119 |
+
|
120 |
+
|
121 |
+
fetchElement : function(mixed) {
|
122 |
+
return typeof mixed === 'string' ? document.getElementById(mixed) : mixed;
|
123 |
+
},
|
124 |
+
|
125 |
+
|
126 |
+
addEvent : function(el, evnt, func) {
|
127 |
+
if(el.addEventListener) {
|
128 |
+
el.addEventListener(evnt, func, false);
|
129 |
+
} else if(el.attachEvent) {
|
130 |
+
el.attachEvent('on'+evnt, func);
|
131 |
+
}
|
132 |
+
},
|
133 |
+
|
134 |
+
|
135 |
+
fireEvent : function(el, evnt) {
|
136 |
+
if(!el) {
|
137 |
+
return;
|
138 |
+
}
|
139 |
+
if(document.createEvent) {
|
140 |
+
var ev = document.createEvent('HTMLEvents');
|
141 |
+
ev.initEvent(evnt, true, true);
|
142 |
+
el.dispatchEvent(ev);
|
143 |
+
} else if(document.createEventObject) {
|
144 |
+
var ev = document.createEventObject();
|
145 |
+
el.fireEvent('on'+evnt, ev);
|
146 |
+
} else if(el['on'+evnt]) { // alternatively use the traditional event model (IE5)
|
147 |
+
el['on'+evnt]();
|
148 |
+
}
|
149 |
+
},
|
150 |
+
|
151 |
+
|
152 |
+
getElementPos : function(e) {
|
153 |
+
var e1=e, e2=e;
|
154 |
+
var x=0, y=0;
|
155 |
+
if(e1.offsetParent) {
|
156 |
+
do {
|
157 |
+
x += e1.offsetLeft;
|
158 |
+
y += e1.offsetTop;
|
159 |
+
} while(e1 = e1.offsetParent);
|
160 |
+
}
|
161 |
+
while((e2 = e2.parentNode) && e2.nodeName.toUpperCase() !== 'BODY') {
|
162 |
+
x -= e2.scrollLeft;
|
163 |
+
y -= e2.scrollTop;
|
164 |
+
}
|
165 |
+
return [x, y];
|
166 |
+
},
|
167 |
+
|
168 |
+
|
169 |
+
getElementSize : function(e) {
|
170 |
+
return [e.offsetWidth, e.offsetHeight];
|
171 |
+
},
|
172 |
+
|
173 |
+
|
174 |
+
getRelMousePos : function(e) {
|
175 |
+
var x = 0, y = 0;
|
176 |
+
if (!e) { e = window.event; }
|
177 |
+
if (typeof e.offsetX === 'number') {
|
178 |
+
x = e.offsetX;
|
179 |
+
y = e.offsetY;
|
180 |
+
} else if (typeof e.layerX === 'number') {
|
181 |
+
x = e.layerX;
|
182 |
+
y = e.layerY;
|
183 |
+
}
|
184 |
+
return { x: x, y: y };
|
185 |
+
},
|
186 |
+
|
187 |
+
|
188 |
+
getViewPos : function() {
|
189 |
+
if(typeof window.pageYOffset === 'number') {
|
190 |
+
return [window.pageXOffset, window.pageYOffset];
|
191 |
+
} else if(document.body && (document.body.scrollLeft || document.body.scrollTop)) {
|
192 |
+
return [document.body.scrollLeft, document.body.scrollTop];
|
193 |
+
} else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
|
194 |
+
return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
|
195 |
+
} else {
|
196 |
+
return [0, 0];
|
197 |
+
}
|
198 |
+
},
|
199 |
+
|
200 |
+
|
201 |
+
getViewSize : function() {
|
202 |
+
if(typeof window.innerWidth === 'number') {
|
203 |
+
return [window.innerWidth, window.innerHeight];
|
204 |
+
} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
|
205 |
+
return [document.body.clientWidth, document.body.clientHeight];
|
206 |
+
} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
|
207 |
+
return [document.documentElement.clientWidth, document.documentElement.clientHeight];
|
208 |
+
} else {
|
209 |
+
return [0, 0];
|
210 |
+
}
|
211 |
+
},
|
212 |
+
|
213 |
+
|
214 |
+
URI : function(uri) { // See RFC3986
|
215 |
+
|
216 |
+
this.scheme = null;
|
217 |
+
this.authority = null;
|
218 |
+
this.path = '';
|
219 |
+
this.query = null;
|
220 |
+
this.fragment = null;
|
221 |
+
|
222 |
+
this.parse = function(uri) {
|
223 |
+
var m = uri.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);
|
224 |
+
this.scheme = m[3] ? m[2] : null;
|
225 |
+
this.authority = m[5] ? m[6] : null;
|
226 |
+
this.path = m[7];
|
227 |
+
this.query = m[9] ? m[10] : null;
|
228 |
+
this.fragment = m[12] ? m[13] : null;
|
229 |
+
return this;
|
230 |
+
};
|
231 |
+
|
232 |
+
this.toString = function() {
|
233 |
+
var result = '';
|
234 |
+
if(this.scheme !== null) { result = result + this.scheme + ':'; }
|
235 |
+
if(this.authority !== null) { result = result + '//' + this.authority; }
|
236 |
+
if(this.path !== null) { result = result + this.path; }
|
237 |
+
if(this.query !== null) { result = result + '?' + this.query; }
|
238 |
+
if(this.fragment !== null) { result = result + '#' + this.fragment; }
|
239 |
+
return result;
|
240 |
+
};
|
241 |
+
|
242 |
+
this.toAbsolute = function(base) {
|
243 |
+
var base = new jscolor.URI(base);
|
244 |
+
var r = this;
|
245 |
+
var t = new jscolor.URI;
|
246 |
+
|
247 |
+
if(base.scheme === null) { return false; }
|
248 |
+
|
249 |
+
if(r.scheme !== null && r.scheme.toLowerCase() === base.scheme.toLowerCase()) {
|
250 |
+
r.scheme = null;
|
251 |
+
}
|
252 |
+
|
253 |
+
if(r.scheme !== null) {
|
254 |
+
t.scheme = r.scheme;
|
255 |
+
t.authority = r.authority;
|
256 |
+
t.path = removeDotSegments(r.path);
|
257 |
+
t.query = r.query;
|
258 |
+
} else {
|
259 |
+
if(r.authority !== null) {
|
260 |
+
t.authority = r.authority;
|
261 |
+
t.path = removeDotSegments(r.path);
|
262 |
+
t.query = r.query;
|
263 |
+
} else {
|
264 |
+
if(r.path === '') { // TODO: == or === ?
|
265 |
+
t.path = base.path;
|
266 |
+
if(r.query !== null) {
|
267 |
+
t.query = r.query;
|
268 |
+
} else {
|
269 |
+
t.query = base.query;
|
270 |
+
}
|
271 |
+
} else {
|
272 |
+
if(r.path.substr(0,1) === '/') {
|
273 |
+
t.path = removeDotSegments(r.path);
|
274 |
+
} else {
|
275 |
+
if(base.authority !== null && base.path === '') { // TODO: == or === ?
|
276 |
+
t.path = '/'+r.path;
|
277 |
+
} else {
|
278 |
+
t.path = base.path.replace(/[^\/]+$/,'')+r.path;
|
279 |
+
}
|
280 |
+
t.path = removeDotSegments(t.path);
|
281 |
+
}
|
282 |
+
t.query = r.query;
|
283 |
+
}
|
284 |
+
t.authority = base.authority;
|
285 |
+
}
|
286 |
+
t.scheme = base.scheme;
|
287 |
+
}
|
288 |
+
t.fragment = r.fragment;
|
289 |
+
|
290 |
+
return t;
|
291 |
+
};
|
292 |
+
|
293 |
+
function removeDotSegments(path) {
|
294 |
+
var out = '';
|
295 |
+
while(path) {
|
296 |
+
if(path.substr(0,3)==='../' || path.substr(0,2)==='./') {
|
297 |
+
path = path.replace(/^\.+/,'').substr(1);
|
298 |
+
} else if(path.substr(0,3)==='/./' || path==='/.') {
|
299 |
+
path = '/'+path.substr(3);
|
300 |
+
} else if(path.substr(0,4)==='/../' || path==='/..') {
|
301 |
+
path = '/'+path.substr(4);
|
302 |
+
out = out.replace(/\/?[^\/]*$/, '');
|
303 |
+
} else if(path==='.' || path==='..') {
|
304 |
+
path = '';
|
305 |
+
} else {
|
306 |
+
var rm = path.match(/^\/?[^\/]*/)[0];
|
307 |
+
path = path.substr(rm.length);
|
308 |
+
out = out + rm;
|
309 |
+
}
|
310 |
+
}
|
311 |
+
return out;
|
312 |
+
}
|
313 |
+
|
314 |
+
if(uri) {
|
315 |
+
this.parse(uri);
|
316 |
+
}
|
317 |
+
|
318 |
+
},
|
319 |
+
|
320 |
+
|
321 |
+
/*
|
322 |
+
* Usage example:
|
323 |
+
* var myColor = new jscolor.color(myInputElement)
|
324 |
+
*/
|
325 |
+
|
326 |
+
color : function(target, prop) {
|
327 |
+
|
328 |
+
|
329 |
+
this.required = true; // refuse empty values?
|
330 |
+
this.adjust = true; // adjust value to uniform notation?
|
331 |
+
this.hash = false; // prefix color with # symbol?
|
332 |
+
this.caps = true; // uppercase?
|
333 |
+
this.slider = true; // show the value/saturation slider?
|
334 |
+
this.valueElement = target; // value holder
|
335 |
+
this.styleElement = target; // where to reflect current color
|
336 |
+
this.onImmediateChange = null; // onchange callback (can be either string or function)
|
337 |
+
this.hsv = [0, 0, 1]; // read-only 0-6, 0-1, 0-1
|
338 |
+
this.rgb = [1, 1, 1]; // read-only 0-1, 0-1, 0-1
|
339 |
+
|
340 |
+
this.pickerOnfocus = true; // display picker on focus?
|
341 |
+
this.pickerMode = 'HSV'; // HSV | HVS
|
342 |
+
this.pickerPosition = 'bottom'; // left | right | top | bottom
|
343 |
+
this.pickerSmartPosition = true; // automatically adjust picker position when necessary
|
344 |
+
this.pickerButtonHeight = 20; // px
|
345 |
+
this.pickerClosable = false;
|
346 |
+
this.pickerCloseText = 'Close';
|
347 |
+
this.pickerButtonColor = 'ButtonText'; // px
|
348 |
+
this.pickerFace = 10; // px
|
349 |
+
this.pickerFaceColor = 'ThreeDFace'; // CSS color
|
350 |
+
this.pickerBorder = 1; // px
|
351 |
+
this.pickerBorderColor = 'ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight'; // CSS color
|
352 |
+
this.pickerInset = 1; // px
|
353 |
+
this.pickerInsetColor = 'ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow'; // CSS color
|
354 |
+
this.pickerZIndex = 10000;
|
355 |
+
|
356 |
+
|
357 |
+
for(var p in prop) {
|
358 |
+
if(prop.hasOwnProperty(p)) {
|
359 |
+
this[p] = prop[p];
|
360 |
+
}
|
361 |
+
}
|
362 |
+
|
363 |
+
|
364 |
+
this.hidePicker = function() {
|
365 |
+
if(isPickerOwner()) {
|
366 |
+
removePicker();
|
367 |
+
}
|
368 |
+
};
|
369 |
+
|
370 |
+
|
371 |
+
this.showPicker = function() {
|
372 |
+
if(!isPickerOwner()) {
|
373 |
+
var tp = jscolor.getElementPos(target); // target pos
|
374 |
+
var ts = jscolor.getElementSize(target); // target size
|
375 |
+
var vp = jscolor.getViewPos(); // view pos
|
376 |
+
var vs = jscolor.getViewSize(); // view size
|
377 |
+
var ps = getPickerDims(this); // picker size
|
378 |
+
var a, b, c;
|
379 |
+
switch(this.pickerPosition.toLowerCase()) {
|
380 |
+
case 'left': a=1; b=0; c=-1; break;
|
381 |
+
case 'right':a=1; b=0; c=1; break;
|
382 |
+
case 'top': a=0; b=1; c=-1; break;
|
383 |
+
default: a=0; b=1; c=1; break;
|
384 |
+
}
|
385 |
+
var l = (ts[b]+ps[b])/2;
|
386 |
+
|
387 |
+
// picker pos
|
388 |
+
if (!this.pickerSmartPosition) {
|
389 |
+
var pp = [
|
390 |
+
tp[a],
|
391 |
+
tp[b]+ts[b]-l+l*c
|
392 |
+
];
|
393 |
+
} else {
|
394 |
+
var pp = [
|
395 |
+
-vp[a]+tp[a]+ps[a] > vs[a] ?
|
396 |
+
(-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :
|
397 |
+
tp[a],
|
398 |
+
-vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
|
399 |
+
(-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :
|
400 |
+
(tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
|
401 |
+
];
|
402 |
+
}
|
403 |
+
drawPicker(pp[a], pp[b]);
|
404 |
+
}
|
405 |
+
};
|
406 |
+
|
407 |
+
|
408 |
+
this.importColor = function() {
|
409 |
+
if(!valueElement) {
|
410 |
+
this.exportColor();
|
411 |
+
} else {
|
412 |
+
if(!this.adjust) {
|
413 |
+
if(!this.fromString(valueElement.value, leaveValue)) {
|
414 |
+
styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
|
415 |
+
styleElement.style.color = styleElement.jscStyle.color;
|
416 |
+
this.exportColor(leaveValue | leaveStyle);
|
417 |
+
}
|
418 |
+
} else if(!this.required && /^\s*$/.test(valueElement.value)) {
|
419 |
+
valueElement.value = '';
|
420 |
+
styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
|
421 |
+
styleElement.style.color = styleElement.jscStyle.color;
|
422 |
+
this.exportColor(leaveValue | leaveStyle);
|
423 |
+
|
424 |
+
} else if(this.fromString(valueElement.value)) {
|
425 |
+
// OK
|
426 |
+
} else {
|
427 |
+
this.exportColor();
|
428 |
+
}
|
429 |
+
}
|
430 |
+
};
|
431 |
+
|
432 |
+
|
433 |
+
this.exportColor = function(flags) {
|
434 |
+
if(!(flags & leaveValue) && valueElement) {
|
435 |
+
var value = this.toString();
|
436 |
+
if(this.caps) { value = value.toUpperCase(); }
|
437 |
+
if(this.hash) { value = '#'+value; }
|
438 |
+
valueElement.value = value;
|
439 |
+
}
|
440 |
+
if(!(flags & leaveStyle) && styleElement) {
|
441 |
+
styleElement.style.backgroundColor =
|
442 |
+
'#'+this.toString();
|
443 |
+
styleElement.style.color =
|
444 |
+
0.213 * this.rgb[0] +
|
445 |
+
0.715 * this.rgb[1] +
|
446 |
+
0.072 * this.rgb[2]
|
447 |
+
< 0.5 ? '#FFF' : '#000';
|
448 |
+
}
|
449 |
+
if(!(flags & leavePad) && isPickerOwner()) {
|
450 |
+
redrawPad();
|
451 |
+
}
|
452 |
+
if(!(flags & leaveSld) && isPickerOwner()) {
|
453 |
+
redrawSld();
|
454 |
+
}
|
455 |
+
};
|
456 |
+
|
457 |
+
|
458 |
+
this.fromHSV = function(h, s, v, flags) { // null = don't change
|
459 |
+
h<0 && (h=0) || h>6 && (h=6);
|
460 |
+
s<0 && (s=0) || s>1 && (s=1);
|
461 |
+
v<0 && (v=0) || v>1 && (v=1);
|
462 |
+
this.rgb = HSV_RGB(
|
463 |
+
h===null ? this.hsv[0] : (this.hsv[0]=h),
|
464 |
+
s===null ? this.hsv[1] : (this.hsv[1]=s),
|
465 |
+
v===null ? this.hsv[2] : (this.hsv[2]=v)
|
466 |
+
);
|
467 |
+
this.exportColor(flags);
|
468 |
+
};
|
469 |
+
|
470 |
+
|
471 |
+
this.fromRGB = function(r, g, b, flags) { // null = don't change
|
472 |
+
r<0 && (r=0) || r>1 && (r=1);
|
473 |
+
g<0 && (g=0) || g>1 && (g=1);
|
474 |
+
b<0 && (b=0) || b>1 && (b=1);
|
475 |
+
var hsv = RGB_HSV(
|
476 |
+
r===null ? this.rgb[0] : (this.rgb[0]=r),
|
477 |
+
g===null ? this.rgb[1] : (this.rgb[1]=g),
|
478 |
+
b===null ? this.rgb[2] : (this.rgb[2]=b)
|
479 |
+
);
|
480 |
+
if(hsv[0] !== null) {
|
481 |
+
this.hsv[0] = hsv[0];
|
482 |
+
}
|
483 |
+
if(hsv[2] !== 0) {
|
484 |
+
this.hsv[1] = hsv[1];
|
485 |
+
}
|
486 |
+
this.hsv[2] = hsv[2];
|
487 |
+
this.exportColor(flags);
|
488 |
+
};
|
489 |
+
|
490 |
+
|
491 |
+
this.fromString = function(hex, flags) {
|
492 |
+
var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);
|
493 |
+
if(!m) {
|
494 |
+
return false;
|
495 |
+
} else {
|
496 |
+
if(m[1].length === 6) { // 6-char notation
|
497 |
+
this.fromRGB(
|
498 |
+
parseInt(m[1].substr(0,2),16) / 255,
|
499 |
+
parseInt(m[1].substr(2,2),16) / 255,
|
500 |
+
parseInt(m[1].substr(4,2),16) / 255,
|
501 |
+
flags
|
502 |
+
);
|
503 |
+
} else { // 3-char notation
|
504 |
+
this.fromRGB(
|
505 |
+
parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255,
|
506 |
+
parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255,
|
507 |
+
parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255,
|
508 |
+
flags
|
509 |
+
);
|
510 |
+
}
|
511 |
+
return true;
|
512 |
+
}
|
513 |
+
};
|
514 |
+
|
515 |
+
|
516 |
+
this.toString = function() {
|
517 |
+
return (
|
518 |
+
(0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
|
519 |
+
(0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
|
520 |
+
(0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
|
521 |
+
);
|
522 |
+
};
|
523 |
+
|
524 |
+
|
525 |
+
function RGB_HSV(r, g, b) {
|
526 |
+
var n = Math.min(Math.min(r,g),b);
|
527 |
+
var v = Math.max(Math.max(r,g),b);
|
528 |
+
var m = v - n;
|
529 |
+
if(m === 0) { return [ null, 0, v ]; }
|
530 |
+
var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
|
531 |
+
return [ h===6?0:h, m/v, v ];
|
532 |
+
}
|
533 |
+
|
534 |
+
|
535 |
+
function HSV_RGB(h, s, v) {
|
536 |
+
if(h === null) { return [ v, v, v ]; }
|
537 |
+
var i = Math.floor(h);
|
538 |
+
var f = i%2 ? h-i : 1-(h-i);
|
539 |
+
var m = v * (1 - s);
|
540 |
+
var n = v * (1 - s*f);
|
541 |
+
switch(i) {
|
542 |
+
case 6:
|
543 |
+
case 0: return [v,n,m];
|
544 |
+
case 1: return [n,v,m];
|
545 |
+
case 2: return [m,v,n];
|
546 |
+
case 3: return [m,n,v];
|
547 |
+
case 4: return [n,m,v];
|
548 |
+
case 5: return [v,m,n];
|
549 |
+
}
|
550 |
+
}
|
551 |
+
|
552 |
+
|
553 |
+
function removePicker() {
|
554 |
+
delete jscolor.picker.owner;
|
555 |
+
document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB);
|
556 |
+
}
|
557 |
+
|
558 |
+
|
559 |
+
function drawPicker(x, y) {
|
560 |
+
if(!jscolor.picker) {
|
561 |
+
jscolor.picker = {
|
562 |
+
box : document.createElement('div'),
|
563 |
+
boxB : document.createElement('div'),
|
564 |
+
pad : document.createElement('div'),
|
565 |
+
padB : document.createElement('div'),
|
566 |
+
padM : document.createElement('div'),
|
567 |
+
sld : document.createElement('div'),
|
568 |
+
sldB : document.createElement('div'),
|
569 |
+
sldM : document.createElement('div'),
|
570 |
+
btn : document.createElement('div'),
|
571 |
+
btnS : document.createElement('span'),
|
572 |
+
btnT : document.createTextNode(THIS.pickerCloseText)
|
573 |
+
};
|
574 |
+
for(var i=0,segSize=4; i<jscolor.images.sld[1]; i+=segSize) {
|
575 |
+
var seg = document.createElement('div');
|
576 |
+
seg.style.height = segSize+'px';
|
577 |
+
seg.style.fontSize = '1px';
|
578 |
+
seg.style.lineHeight = '0';
|
579 |
+
jscolor.picker.sld.appendChild(seg);
|
580 |
+
}
|
581 |
+
jscolor.picker.sldB.appendChild(jscolor.picker.sld);
|
582 |
+
jscolor.picker.box.appendChild(jscolor.picker.sldB);
|
583 |
+
jscolor.picker.box.appendChild(jscolor.picker.sldM);
|
584 |
+
jscolor.picker.padB.appendChild(jscolor.picker.pad);
|
585 |
+
jscolor.picker.box.appendChild(jscolor.picker.padB);
|
586 |
+
jscolor.picker.box.appendChild(jscolor.picker.padM);
|
587 |
+
jscolor.picker.btnS.appendChild(jscolor.picker.btnT);
|
588 |
+
jscolor.picker.btn.appendChild(jscolor.picker.btnS);
|
589 |
+
jscolor.picker.box.appendChild(jscolor.picker.btn);
|
590 |
+
jscolor.picker.boxB.appendChild(jscolor.picker.box);
|
591 |
+
}
|
592 |
+
|
593 |
+
var p = jscolor.picker;
|
594 |
+
|
595 |
+
// controls interaction
|
596 |
+
p.box.onmouseup =
|
597 |
+
p.box.onmouseout = function() { target.focus(); };
|
598 |
+
p.box.onmousedown = function() { abortBlur=true; };
|
599 |
+
p.box.onmousemove = function(e) {
|
600 |
+
if (holdPad || holdSld) {
|
601 |
+
holdPad && setPad(e);
|
602 |
+
holdSld && setSld(e);
|
603 |
+
if (document.selection) {
|
604 |
+
document.selection.empty();
|
605 |
+
} else if (window.getSelection) {
|
606 |
+
window.getSelection().removeAllRanges();
|
607 |
+
}
|
608 |
+
dispatchImmediateChange();
|
609 |
+
}
|
610 |
+
};
|
611 |
+
p.padM.onmouseup =
|
612 |
+
p.padM.onmouseout = function() { if(holdPad) { holdPad=false; jscolor.fireEvent(valueElement,'change'); } };
|
613 |
+
p.padM.onmousedown = function(e) {
|
614 |
+
holdPad=true;
|
615 |
+
setPad(e);
|
616 |
+
dispatchImmediateChange();
|
617 |
+
};
|
618 |
+
p.sldM.onmouseup =
|
619 |
+
p.sldM.onmouseout = function() { if(holdSld) { holdSld=false; jscolor.fireEvent(valueElement,'change'); } };
|
620 |
+
p.sldM.onmousedown = function(e) {
|
621 |
+
holdSld=true;
|
622 |
+
setSld(e);
|
623 |
+
dispatchImmediateChange();
|
624 |
+
};
|
625 |
+
|
626 |
+
// picker
|
627 |
+
var dims = getPickerDims(THIS);
|
628 |
+
p.box.style.width = dims[0] + 'px';
|
629 |
+
p.box.style.height = dims[1] + 'px';
|
630 |
+
|
631 |
+
// picker border
|
632 |
+
p.boxB.style.position = 'absolute';
|
633 |
+
p.boxB.style.clear = 'both';
|
634 |
+
p.boxB.style.left = x+'px';
|
635 |
+
p.boxB.style.top = y+'px';
|
636 |
+
p.boxB.style.zIndex = THIS.pickerZIndex;
|
637 |
+
p.boxB.style.border = THIS.pickerBorder+'px solid';
|
638 |
+
p.boxB.style.borderColor = THIS.pickerBorderColor;
|
639 |
+
p.boxB.style.background = THIS.pickerFaceColor;
|
640 |
+
|
641 |
+
// pad image
|
642 |
+
p.pad.style.width = jscolor.images.pad[0]+'px';
|
643 |
+
p.pad.style.height = jscolor.images.pad[1]+'px';
|
644 |
+
|
645 |
+
// pad border
|
646 |
+
p.padB.style.position = 'absolute';
|
647 |
+
p.padB.style.left = THIS.pickerFace+'px';
|
648 |
+
p.padB.style.top = THIS.pickerFace+'px';
|
649 |
+
p.padB.style.border = THIS.pickerInset+'px solid';
|
650 |
+
p.padB.style.borderColor = THIS.pickerInsetColor;
|
651 |
+
|
652 |
+
// pad mouse area
|
653 |
+
p.padM.style.position = 'absolute';
|
654 |
+
p.padM.style.left = '0';
|
655 |
+
p.padM.style.top = '0';
|
656 |
+
p.padM.style.width = THIS.pickerFace + 2*THIS.pickerInset + jscolor.images.pad[0] + jscolor.images.arrow[0] + 'px';
|
657 |
+
p.padM.style.height = p.box.style.height;
|
658 |
+
p.padM.style.cursor = 'crosshair';
|
659 |
+
|
660 |
+
// slider image
|
661 |
+
p.sld.style.overflow = 'hidden';
|
662 |
+
p.sld.style.width = jscolor.images.sld[0]+'px';
|
663 |
+
p.sld.style.height = jscolor.images.sld[1]+'px';
|
664 |
+
|
665 |
+
// slider border
|
666 |
+
p.sldB.style.display = THIS.slider ? 'block' : 'none';
|
667 |
+
p.sldB.style.position = 'absolute';
|
668 |
+
p.sldB.style.right = THIS.pickerFace+'px';
|
669 |
+
p.sldB.style.top = THIS.pickerFace+'px';
|
670 |
+
p.sldB.style.border = THIS.pickerInset+'px solid';
|
671 |
+
p.sldB.style.borderColor = THIS.pickerInsetColor;
|
672 |
+
|
673 |
+
// slider mouse area
|
674 |
+
p.sldM.style.display = THIS.slider ? 'block' : 'none';
|
675 |
+
p.sldM.style.position = 'absolute';
|
676 |
+
p.sldM.style.right = '0';
|
677 |
+
p.sldM.style.top = '0';
|
678 |
+
p.sldM.style.width = jscolor.images.sld[0] + jscolor.images.arrow[0] + THIS.pickerFace + 2*THIS.pickerInset + 'px';
|
679 |
+
p.sldM.style.height = p.box.style.height;
|
680 |
+
try {
|
681 |
+
p.sldM.style.cursor = 'pointer';
|
682 |
+
} catch(eOldIE) {
|
683 |
+
p.sldM.style.cursor = 'hand';
|
684 |
+
}
|
685 |
+
|
686 |
+
// "close" button
|
687 |
+
function setBtnBorder() {
|
688 |
+
var insetColors = THIS.pickerInsetColor.split(/\s+/);
|
689 |
+
var pickerOutsetColor = insetColors.length < 2 ? insetColors[0] : insetColors[1] + ' ' + insetColors[0] + ' ' + insetColors[0] + ' ' + insetColors[1];
|
690 |
+
p.btn.style.borderColor = pickerOutsetColor;
|
691 |
+
}
|
692 |
+
p.btn.style.display = THIS.pickerClosable ? 'block' : 'none';
|
693 |
+
p.btn.style.position = 'absolute';
|
694 |
+
p.btn.style.left = THIS.pickerFace + 'px';
|
695 |
+
p.btn.style.bottom = THIS.pickerFace + 'px';
|
696 |
+
p.btn.style.padding = '0 15px';
|
697 |
+
p.btn.style.height = '18px';
|
698 |
+
p.btn.style.border = THIS.pickerInset + 'px solid';
|
699 |
+
setBtnBorder();
|
700 |
+
p.btn.style.color = THIS.pickerButtonColor;
|
701 |
+
p.btn.style.font = '12px sans-serif';
|
702 |
+
p.btn.style.textAlign = 'center';
|
703 |
+
try {
|
704 |
+
p.btn.style.cursor = 'pointer';
|
705 |
+
} catch(eOldIE) {
|
706 |
+
p.btn.style.cursor = 'hand';
|
707 |
+
}
|
708 |
+
p.btn.onmousedown = function () {
|
709 |
+
THIS.hidePicker();
|
710 |
+
};
|
711 |
+
p.btnS.style.lineHeight = p.btn.style.height;
|
712 |
+
|
713 |
+
// load images in optimal order
|
714 |
+
switch(modeID) {
|
715 |
+
case 0: var padImg = 'hs.png'; break;
|
716 |
+
case 1: var padImg = 'hv.png'; break;
|
717 |
+
}
|
718 |
+
p.padM.style.backgroundImage = "url('"+jscolor.getDir()+"cross.gif')";
|
719 |
+
p.padM.style.backgroundRepeat = "no-repeat";
|
720 |
+
p.sldM.style.backgroundImage = "url('"+jscolor.getDir()+"arrow.gif')";
|
721 |
+
p.sldM.style.backgroundRepeat = "no-repeat";
|
722 |
+
p.pad.style.backgroundImage = "url('"+jscolor.getDir()+padImg+"')";
|
723 |
+
p.pad.style.backgroundRepeat = "no-repeat";
|
724 |
+
p.pad.style.backgroundPosition = "0 0";
|
725 |
+
|
726 |
+
// place pointers
|
727 |
+
redrawPad();
|
728 |
+
redrawSld();
|
729 |
+
|
730 |
+
jscolor.picker.owner = THIS;
|
731 |
+
document.getElementsByTagName('body')[0].appendChild(p.boxB);
|
732 |
+
}
|
733 |
+
|
734 |
+
|
735 |
+
function getPickerDims(o) {
|
736 |
+
var dims = [
|
737 |
+
2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[0] +
|
738 |
+
(o.slider ? 2*o.pickerInset + 2*jscolor.images.arrow[0] + jscolor.images.sld[0] : 0),
|
739 |
+
o.pickerClosable ?
|
740 |
+
4*o.pickerInset + 3*o.pickerFace + jscolor.images.pad[1] + o.pickerButtonHeight :
|
741 |
+
2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[1]
|
742 |
+
];
|
743 |
+
return dims;
|
744 |
+
}
|
745 |
+
|
746 |
+
|
747 |
+
function redrawPad() {
|
748 |
+
// redraw the pad pointer
|
749 |
+
switch(modeID) {
|
750 |
+
case 0: var yComponent = 1; break;
|
751 |
+
case 1: var yComponent = 2; break;
|
752 |
+
}
|
753 |
+
var x = Math.round((THIS.hsv[0]/6) * (jscolor.images.pad[0]-1));
|
754 |
+
var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.pad[1]-1));
|
755 |
+
jscolor.picker.padM.style.backgroundPosition =
|
756 |
+
(THIS.pickerFace+THIS.pickerInset+x - Math.floor(jscolor.images.cross[0]/2)) + 'px ' +
|
757 |
+
(THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.cross[1]/2)) + 'px';
|
758 |
+
|
759 |
+
// redraw the slider image
|
760 |
+
var seg = jscolor.picker.sld.childNodes;
|
761 |
+
|
762 |
+
switch(modeID) {
|
763 |
+
case 0:
|
764 |
+
var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 1);
|
765 |
+
for(var i=0; i<seg.length; i+=1) {
|
766 |
+
seg[i].style.backgroundColor = 'rgb('+
|
767 |
+
(rgb[0]*(1-i/seg.length)*100)+'%,'+
|
768 |
+
(rgb[1]*(1-i/seg.length)*100)+'%,'+
|
769 |
+
(rgb[2]*(1-i/seg.length)*100)+'%)';
|
770 |
+
}
|
771 |
+
break;
|
772 |
+
case 1:
|
773 |
+
var rgb, s, c = [ THIS.hsv[2], 0, 0 ];
|
774 |
+
var i = Math.floor(THIS.hsv[0]);
|
775 |
+
var f = i%2 ? THIS.hsv[0]-i : 1-(THIS.hsv[0]-i);
|
776 |
+
switch(i) {
|
777 |
+
case 6:
|
778 |
+
case 0: rgb=[0,1,2]; break;
|
779 |
+
case 1: rgb=[1,0,2]; break;
|
780 |
+
case 2: rgb=[2,0,1]; break;
|
781 |
+
case 3: rgb=[2,1,0]; break;
|
782 |
+
case 4: rgb=[1,2,0]; break;
|
783 |
+
case 5: rgb=[0,2,1]; break;
|
784 |
+
}
|
785 |
+
for(var i=0; i<seg.length; i+=1) {
|
786 |
+
s = 1 - 1/(seg.length-1)*i;
|
787 |
+
c[1] = c[0] * (1 - s*f);
|
788 |
+
c[2] = c[0] * (1 - s);
|
789 |
+
seg[i].style.backgroundColor = 'rgb('+
|
790 |
+
(c[rgb[0]]*100)+'%,'+
|
791 |
+
(c[rgb[1]]*100)+'%,'+
|
792 |
+
(c[rgb[2]]*100)+'%)';
|
793 |
+
}
|
794 |
+
break;
|
795 |
+
}
|
796 |
+
}
|
797 |
+
|
798 |
+
|
799 |
+
function redrawSld() {
|
800 |
+
// redraw the slider pointer
|
801 |
+
switch(modeID) {
|
802 |
+
case 0: var yComponent = 2; break;
|
803 |
+
case 1: var yComponent = 1; break;
|
804 |
+
}
|
805 |
+
var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.sld[1]-1));
|
806 |
+
jscolor.picker.sldM.style.backgroundPosition =
|
807 |
+
'0 ' + (THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.arrow[1]/2)) + 'px';
|
808 |
+
}
|
809 |
+
|
810 |
+
|
811 |
+
function isPickerOwner() {
|
812 |
+
return jscolor.picker && jscolor.picker.owner === THIS;
|
813 |
+
}
|
814 |
+
|
815 |
+
|
816 |
+
function blurTarget() {
|
817 |
+
if(valueElement === target) {
|
818 |
+
THIS.importColor();
|
819 |
+
}
|
820 |
+
if(THIS.pickerOnfocus) {
|
821 |
+
THIS.hidePicker();
|
822 |
+
}
|
823 |
+
}
|
824 |
+
|
825 |
+
|
826 |
+
function blurValue() {
|
827 |
+
if(valueElement !== target) {
|
828 |
+
THIS.importColor();
|
829 |
+
}
|
830 |
+
}
|
831 |
+
|
832 |
+
|
833 |
+
function setPad(e) {
|
834 |
+
var mpos = jscolor.getRelMousePos(e);
|
835 |
+
var x = mpos.x - THIS.pickerFace - THIS.pickerInset;
|
836 |
+
var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
|
837 |
+
switch(modeID) {
|
838 |
+
case 0: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), 1 - y/(jscolor.images.pad[1]-1), null, leaveSld); break;
|
839 |
+
case 1: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), null, 1 - y/(jscolor.images.pad[1]-1), leaveSld); break;
|
840 |
+
}
|
841 |
+
}
|
842 |
+
|
843 |
+
|
844 |
+
function setSld(e) {
|
845 |
+
var mpos = jscolor.getRelMousePos(e);
|
846 |
+
var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
|
847 |
+
switch(modeID) {
|
848 |
+
case 0: THIS.fromHSV(null, null, 1 - y/(jscolor.images.sld[1]-1), leavePad); break;
|
849 |
+
case 1: THIS.fromHSV(null, 1 - y/(jscolor.images.sld[1]-1), null, leavePad); break;
|
850 |
+
}
|
851 |
+
}
|
852 |
+
|
853 |
+
|
854 |
+
function dispatchImmediateChange() {
|
855 |
+
if (THIS.onImmediateChange) {
|
856 |
+
if (typeof THIS.onImmediateChange === 'string') {
|
857 |
+
eval(THIS.onImmediateChange);
|
858 |
+
} else {
|
859 |
+
THIS.onImmediateChange(THIS);
|
860 |
+
}
|
861 |
+
}
|
862 |
+
}
|
863 |
+
|
864 |
+
|
865 |
+
var THIS = this;
|
866 |
+
var modeID = this.pickerMode.toLowerCase()==='hvs' ? 1 : 0;
|
867 |
+
var abortBlur = false;
|
868 |
+
var
|
869 |
+
valueElement = jscolor.fetchElement(this.valueElement),
|
870 |
+
styleElement = jscolor.fetchElement(this.styleElement);
|
871 |
+
var
|
872 |
+
holdPad = false,
|
873 |
+
holdSld = false;
|
874 |
+
var
|
875 |
+
leaveValue = 1<<0,
|
876 |
+
leaveStyle = 1<<1,
|
877 |
+
leavePad = 1<<2,
|
878 |
+
leaveSld = 1<<3;
|
879 |
+
|
880 |
+
// target
|
881 |
+
jscolor.addEvent(target, 'focus', function() {
|
882 |
+
if(THIS.pickerOnfocus) { THIS.showPicker(); }
|
883 |
+
});
|
884 |
+
jscolor.addEvent(target, 'blur', function() {
|
885 |
+
if(!abortBlur) {
|
886 |
+
window.setTimeout(function(){ abortBlur || blurTarget(); abortBlur=false; }, 0);
|
887 |
+
} else {
|
888 |
+
abortBlur = false;
|
889 |
+
}
|
890 |
+
});
|
891 |
+
|
892 |
+
// valueElement
|
893 |
+
if(valueElement) {
|
894 |
+
var updateField = function() {
|
895 |
+
THIS.fromString(valueElement.value, leaveValue);
|
896 |
+
dispatchImmediateChange();
|
897 |
+
};
|
898 |
+
jscolor.addEvent(valueElement, 'keyup', updateField);
|
899 |
+
jscolor.addEvent(valueElement, 'input', updateField);
|
900 |
+
jscolor.addEvent(valueElement, 'blur', blurValue);
|
901 |
+
valueElement.setAttribute('autocomplete', 'off');
|
902 |
+
}
|
903 |
+
|
904 |
+
// styleElement
|
905 |
+
if(styleElement) {
|
906 |
+
styleElement.jscStyle = {
|
907 |
+
backgroundColor : styleElement.style.backgroundColor,
|
908 |
+
color : styleElement.style.color
|
909 |
+
};
|
910 |
+
}
|
911 |
+
|
912 |
+
// require images
|
913 |
+
switch(modeID) {
|
914 |
+
case 0: jscolor.requireImage('hs.png'); break;
|
915 |
+
case 1: jscolor.requireImage('hv.png'); break;
|
916 |
+
}
|
917 |
+
jscolor.requireImage('cross.gif');
|
918 |
+
jscolor.requireImage('arrow.gif');
|
919 |
+
|
920 |
+
this.importColor();
|
921 |
+
}
|
922 |
+
|
923 |
+
};
|
924 |
+
|
925 |
+
|
926 |
+
jscolor.install();
|
languages/sp_calendar-sl_SI.mo
ADDED
Binary file
|
languages/sp_calendar-sl_SI.po
ADDED
@@ -0,0 +1,351 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: spider_calendar\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-08-13 18:54+0400\n"
|
6 |
+
"PO-Revision-Date: 2016-02-03 11:00+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: sl_SI\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.8.6\n"
|
16 |
+
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n"
|
17 |
+
"%100==3 || n%100==4 ? 2 : 3);\n"
|
18 |
+
"X-Poedit-SearchPath-0: C:/wamp/www/wordpress3.5/wp-content/plugins/"
|
19 |
+
"spider-event-calendar\n"
|
20 |
+
|
21 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:451
|
22 |
+
msgid "Date"
|
23 |
+
msgstr "Datum"
|
24 |
+
|
25 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:458
|
26 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:461
|
27 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:475
|
28 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:478
|
29 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:481
|
30 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:484
|
31 |
+
msgid "Repeat Every"
|
32 |
+
msgstr "Ponavljaj vsak"
|
33 |
+
|
34 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:458
|
35 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:366
|
36 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:228
|
37 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:364
|
38 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:205
|
39 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:263
|
40 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:201
|
41 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:387
|
42 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:235
|
43 |
+
msgid "Day"
|
44 |
+
msgstr "Dan"
|
45 |
+
|
46 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:461
|
47 |
+
msgid "Week(s) on"
|
48 |
+
msgstr "Tedensko"
|
49 |
+
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:475
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:478
|
52 |
+
msgid "Month(s) on the"
|
53 |
+
msgstr "Mesečno"
|
54 |
+
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:481
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:484
|
57 |
+
msgid "Year(s) in"
|
58 |
+
msgstr "Letno"
|
59 |
+
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:481
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:484
|
62 |
+
msgid "on the"
|
63 |
+
msgstr "na"
|
64 |
+
|
65 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:492
|
66 |
+
msgid "There Is No Text For This Event"
|
67 |
+
msgstr "Ni besedila za ta dogodek"
|
68 |
+
|
69 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/functions_for_xml_and_ajax.php:509
|
70 |
+
msgid "Back to event list"
|
71 |
+
msgstr "Nazaj na seznam dogodkov"
|
72 |
+
|
73 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:78
|
74 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:43
|
75 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:87
|
76 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:43
|
77 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:80
|
78 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:43
|
79 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:78
|
80 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:44
|
81 |
+
msgid "January"
|
82 |
+
msgstr "Januar"
|
83 |
+
|
84 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:79
|
85 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:44
|
86 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:88
|
87 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:44
|
88 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:81
|
89 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:44
|
90 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:79
|
91 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:45
|
92 |
+
msgid "February"
|
93 |
+
msgstr "Februar"
|
94 |
+
|
95 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:80
|
96 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:45
|
97 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:89
|
98 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:45
|
99 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:82
|
100 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:45
|
101 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:80
|
102 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:46
|
103 |
+
msgid "March"
|
104 |
+
msgstr "Marec"
|
105 |
+
|
106 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:81
|
107 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:46
|
108 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:90
|
109 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:46
|
110 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:83
|
111 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:46
|
112 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:81
|
113 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:47
|
114 |
+
msgid "April"
|
115 |
+
msgstr "April"
|
116 |
+
|
117 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:82
|
118 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:47
|
119 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:91
|
120 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:47
|
121 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:84
|
122 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:47
|
123 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:82
|
124 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:48
|
125 |
+
msgid "May"
|
126 |
+
msgstr "Maj"
|
127 |
+
|
128 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:83
|
129 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:48
|
130 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:92
|
131 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:48
|
132 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:85
|
133 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:48
|
134 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:83
|
135 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:49
|
136 |
+
msgid "June"
|
137 |
+
msgstr "Junij"
|
138 |
+
|
139 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:84
|
140 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:49
|
141 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:93
|
142 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:49
|
143 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:86
|
144 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:49
|
145 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:84
|
146 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:50
|
147 |
+
msgid "July"
|
148 |
+
msgstr "Julij"
|
149 |
+
|
150 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:85
|
151 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:50
|
152 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:94
|
153 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:50
|
154 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:87
|
155 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:50
|
156 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:85
|
157 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:51
|
158 |
+
msgid "August"
|
159 |
+
msgstr "Avgust"
|
160 |
+
|
161 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:86
|
162 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:51
|
163 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:95
|
164 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:51
|
165 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:88
|
166 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:51
|
167 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:86
|
168 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:52
|
169 |
+
msgid "September"
|
170 |
+
msgstr "September"
|
171 |
+
|
172 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:87
|
173 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:52
|
174 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:96
|
175 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:52
|
176 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:89
|
177 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:52
|
178 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:87
|
179 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:53
|
180 |
+
msgid "October"
|
181 |
+
msgstr "Oktober"
|
182 |
+
|
183 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:88
|
184 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:53
|
185 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:97
|
186 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:53
|
187 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:90
|
188 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:53
|
189 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:88
|
190 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:54
|
191 |
+
msgid "November"
|
192 |
+
msgstr "November"
|
193 |
+
|
194 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:89
|
195 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:54
|
196 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:98
|
197 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:54
|
198 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:91
|
199 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:54
|
200 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:89
|
201 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:55
|
202 |
+
msgid "December"
|
203 |
+
msgstr "December"
|
204 |
+
|
205 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:379
|
206 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:241
|
207 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:377
|
208 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:218
|
209 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:276
|
210 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:214
|
211 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:400
|
212 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:475
|
213 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:248
|
214 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:310
|
215 |
+
msgid "Week"
|
216 |
+
msgstr "Teden"
|
217 |
+
|
218 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:391
|
219 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:253
|
220 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:389
|
221 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:230
|
222 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:288
|
223 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:226
|
224 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:412
|
225 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:260
|
226 |
+
msgid "List"
|
227 |
+
msgstr "Seznam"
|
228 |
+
|
229 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:403
|
230 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:265
|
231 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:401
|
232 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:242
|
233 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:300
|
234 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:238
|
235 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:424
|
236 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:272
|
237 |
+
msgid "Month"
|
238 |
+
msgstr "Mesec"
|
239 |
+
|
240 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:556
|
241 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:378
|
242 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:638
|
243 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:458
|
244 |
+
msgid "There are no events on this date"
|
245 |
+
msgstr "Ni dogodkov na ta datum"
|
246 |
+
|
247 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist.php:536
|
248 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarlist_widget.php:339
|
249 |
+
msgid "There are no events for this month"
|
250 |
+
msgstr "Ni dogodkov v tem mesecu"
|
251 |
+
|
252 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:398
|
253 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:421
|
254 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:305
|
255 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:328
|
256 |
+
msgid "Su"
|
257 |
+
msgstr "Ned"
|
258 |
+
|
259 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:402
|
260 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:309
|
261 |
+
msgid "Mo"
|
262 |
+
msgstr "Pon"
|
263 |
+
|
264 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:405
|
265 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:312
|
266 |
+
msgid "Tu"
|
267 |
+
msgstr "Tor"
|
268 |
+
|
269 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:408
|
270 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:315
|
271 |
+
msgid "We"
|
272 |
+
msgstr "Sre"
|
273 |
+
|
274 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:411
|
275 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:318
|
276 |
+
msgid "Th"
|
277 |
+
msgstr "Čet"
|
278 |
+
|
279 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:414
|
280 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:321
|
281 |
+
msgid "Fr"
|
282 |
+
msgstr "Pet"
|
283 |
+
|
284 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:417
|
285 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth_widget.php:324
|
286 |
+
msgid "Sa"
|
287 |
+
msgstr "Sob"
|
288 |
+
|
289 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:508
|
290 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:558
|
291 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:612
|
292 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:667
|
293 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:718
|
294 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarmonth.php:771
|
295 |
+
msgid "See more"
|
296 |
+
msgstr "Poglej več"
|
297 |
+
|
298 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:927
|
299 |
+
msgid "First"
|
300 |
+
msgstr "Prvi"
|
301 |
+
|
302 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:930
|
303 |
+
msgid "Second"
|
304 |
+
msgstr "Drugi"
|
305 |
+
|
306 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:933
|
307 |
+
msgid "Third"
|
308 |
+
msgstr "Tretji"
|
309 |
+
|
310 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:936
|
311 |
+
msgid "Fourth"
|
312 |
+
msgstr "Četrti"
|
313 |
+
|
314 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:939
|
315 |
+
msgid "Last"
|
316 |
+
msgstr "Zadnji"
|
317 |
+
|
318 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:945
|
319 |
+
msgid "Monday"
|
320 |
+
msgstr "Ponedeljek"
|
321 |
+
|
322 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:948
|
323 |
+
msgid "Tuesday"
|
324 |
+
msgstr "Torek"
|
325 |
+
|
326 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:951
|
327 |
+
msgid "Wednesday"
|
328 |
+
msgstr "Sreda"
|
329 |
+
|
330 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:954
|
331 |
+
msgid "Thursday"
|
332 |
+
msgstr "Četrtek"
|
333 |
+
|
334 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:957
|
335 |
+
msgid "Friday"
|
336 |
+
msgstr "Petek"
|
337 |
+
|
338 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:960
|
339 |
+
msgid "Saturday"
|
340 |
+
msgstr "Sobota"
|
341 |
+
|
342 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/frontend_functions.php:963
|
343 |
+
msgid "Sunday"
|
344 |
+
msgstr "Nedelja"
|
345 |
+
|
346 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/views.php:760
|
347 |
+
msgid "All categories"
|
348 |
+
msgstr "Vse kategorije"
|
349 |
+
|
350 |
+
#~ msgid "No Repeat"
|
351 |
+
#~ msgstr "Без паўтору"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-calendar.html
|
|
4 |
Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -142,6 +142,9 @@ Vietnamese (vi)
|
|
142 |
|
143 |
== Changelog ==
|
144 |
|
|
|
|
|
|
|
145 |
= 1.5.44 =
|
146 |
Fixed: Minor bug
|
147 |
|
4 |
Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 1.5.45
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
142 |
|
143 |
== Changelog ==
|
144 |
|
145 |
+
= 1.5.45 =
|
146 |
+
Changed: Featured themes page.
|
147 |
+
|
148 |
= 1.5.44 =
|
149 |
Fixed: Minor bug
|
150 |
|
responsive.css
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@media only screen and (max-width : 640px) {
|
2 |
+
|
3 |
+
#views_tabs ,#drop_down_views
|
4 |
+
{
|
5 |
+
display:none;
|
6 |
+
}
|
7 |
+
|
8 |
+
#views_tabs_select
|
9 |
+
{
|
10 |
+
display:block !important;
|
11 |
+
}
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
}
|
16 |
+
|
17 |
+
@media only screen and (max-width : 968px) {
|
18 |
+
#cats >li
|
19 |
+
{
|
20 |
+
float:none;
|
21 |
+
}
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
}
|
responsive.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
jQuery(document).ready(function (){
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
jQuery('#views_select').click(function () {
|
7 |
+
|
8 |
+
jQuery('#drop_down_views').stop(true, true).delay(200).slideDown(500);
|
9 |
+
}, function () {
|
10 |
+
|
11 |
+
jQuery('#drop_down_views').stop(true, true).slideUp(500);
|
12 |
+
|
13 |
+
});
|
14 |
+
|
15 |
+
if(jQuery(window).width() > 640 )
|
16 |
+
{
|
17 |
+
|
18 |
+
jQuery('drop_down_views').hide();
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
+
});
|
23 |
+
|
24 |
+
|