API saimod now works much better. Also uploaded a tooltip js library (I will need that for the file module and anywhere)

This commit is contained in:
messerbill 2014-06-04 17:02:55 +02:00
parent dc43d02250
commit 34f0343e59
46 changed files with 3832 additions and 41 deletions

View File

@ -0,0 +1,11 @@
<?php
namespace SYSTEM\DBD;
class SYS_SAIMOD_API_SINGLE_SELECT extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'SELECT * FROM '.\SYSTEM\DBD\system_api::NAME_PG.' WHERE ID = $1;',
//mys
'SELECT * FROM '.\SYSTEM\DBD\system_api::NAME_MYS.' WHERE ID = ?;'
);}}

View File

@ -0,0 +1,26 @@
<div id="api_deletedialog">
<h5>Api Call: ${ID}</h5>
<hr>
<table class="table sai_table">
<tr>
<th>ID</th>
<th>Group</th>
<th>Type</th>
<th>ParentID</th>
<th>ParentValue</th>
<th>Name</th>
<th>Verify</th>
</tr>
<tr>
<td>${ID}</td>
<td>${group}</td>
<td>${type}</td>
<td>${parentID}</td>
<td>${parentValue}</td>
<td>${name}</td>
<td>${verify}</td>
</tr>
</table>
</div>
<button type="button" class="btn btn-small btn-danger" id="del_api_del">Delete</button>
<button type="button" class="btn btn-small" id="del_api_close">Close</button>

View File

@ -1,31 +1,51 @@
var currentID = ''; var currentID = '';
function init__SYSTEM_SAI_saimod_sys_api() { function init__SYSTEM_SAI_saimod_sys_api() {
$('tr.api_entries').click(function() { saimod_sys_api_register_clickevents();
currentID = $(this).attr("id");
$('#modaltitle').html("Call ID: "+currentID+'<hr>'); }
$('#modal_description').append('<div id="api_wrap"><b>Group:</b> '+$(this).attr("group")+'<br>');
$('#modal_description').append('<b>Type:</b> '+$(this).attr("typ")+'<br>'); function saimod_sys_api_loadcontent(){
$('#modal_description').append('<b>ParentID:</b> '+$(this).attr("parentID")+'<br>'); $('#api_wrapper').load(SAI_ENDPOINT+'sai_mod=.SYSTEM.SAI.saimod_sys_api', function(){
$('#modal_description').append('<b>ParentValue:</b> '+$(this).attr("parentValue")+'<br>'); console.log('api module loaded');
$('#modal_description').append('<b>Name:</b> '+$(this).attr("name")+'<br>'); saimod_sys_api_register_clickevents();
$('#modal_description').append('<b>Verify:</b> '+$(this).attr("verify")+'</div>');
$('#modal_api').modal('show');
}); });
$('#del_api').click(function() {
}
function saimod_sys_api_register_clickevents(){
$('tr.api_entries').click(function() {
console.log("ahsf");
currentID = $(this).attr("id");
$.ajax({ $.ajax({
url: SAI_ENDPOINT, url: SAI_ENDPOINT,
data: { sai_mod: '.SYSTEM.SAI.saimod_sys_api', data: { sai_mod: '.SYSTEM.SAI.saimod_sys_api',
action: 'deletecall', action: 'deletedialog',
ID: currentID}, ID: currentID},
type: 'GET', type: 'GET',
success: function(data) { success: function(data) {
console.log("api call deleted"); console.log("works");
$('#modal_api').modal('hide'); $('#api_content').html(data);
} $('#del_api_close').click(function() {
}); console.log("olenski");
}); $('#del_api_description').hide();
$('#del_api_del').show();
saimod_sys_api_loadcontent();
});
$('#del_api_del').click(function() {
$.ajax({
url: SAI_ENDPOINT,
data: { sai_mod: '.SYSTEM.SAI.saimod_sys_api',
action: 'deletecall',
ID: currentID},
type: 'GET',
success: function(data) {
console.log("api call deleted");
$('#api_deletedialog').html('<p>Api call deleted!</p>');
$('#del_api_del').hide();
}});});}});});
$('#addcall').click(function() { $('#addcall').click(function() {
console.log("bla");
var id = $('#new_call_id').val(); var id = $('#new_call_id').val();
var group = $('#new_call_group').val(); var group = $('#new_call_group').val();
var type = $('#new_call_type').val(); var type = $('#new_call_type').val();
@ -47,8 +67,16 @@ function init__SYSTEM_SAI_saimod_sys_api() {
type: 'GET', type: 'GET',
success: function(data) { success: function(data) {
console.log("new api call added"); console.log("new api call added");
saimod_sys_api_loadcontent();
} }
});}); });
});
$('#del_api_close').click(function() {
console.log("olenski");
$('#del_api_description').hide();
$('#del_api_del').show();
saimod_sys_api_loadcontent();
});
$('#localetab a').click(function (e) {e.preventDefault(); $(this).tab('show');}); $('#localetab a').click(function (e) {e.preventDefault(); $(this).tab('show');});
} }

View File

@ -50,6 +50,13 @@ class saimod_sys_api extends \SYSTEM\SAI\SaiModule {
return $result;*/ return $result;*/
} }
public static function sai_mod__system_sai_saimod_sys_api_action_deletedialog($ID){
new \SYSTEM\LOG\WARNING("api call added");
new \SYSTEM\LOG\WARNING(print_r($ID, true));
$res = \SYSTEM\DBD\SYS_SAIMOD_API_SINGLE_SELECT::Q1(array($ID));
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_api/delete_dialog.tpl'), $res);
}
public static function sai_mod__system_sai_saimod_sys_api_action_addcall($ID,$group,$type,$parentID,$parentValue,$name,$verify){ public static function sai_mod__system_sai_saimod_sys_api_action_addcall($ID,$group,$type,$parentID,$parentValue,$name,$verify){
new \SYSTEM\LOG\WARNING("api call added"); new \SYSTEM\LOG\WARNING("api call added");
$res = \SYSTEM\DBD\SYS_SAIMOD_API_ADD::QI(array($ID,$group,$type,$parentID,$parentValue,$name,$verify)); $res = \SYSTEM\DBD\SYS_SAIMOD_API_ADD::QI(array($ID,$group,$type,$parentID,$parentValue,$name,$verify));

View File

@ -1,5 +1,7 @@
<div id="api_wrapper">
<h4>System API</h4> <h4>System API</h4>
<hr> <hr>
<div id="api_content">
<div class="tabbable"> <div class="tabbable">
<ul class="nav nav-tabs" id="localetab"> <ul class="nav nav-tabs" id="localetab">
${tabopts} ${tabopts}
@ -30,24 +32,5 @@
</table> </table>
<button type="button" class="btn-small btn-success" id="addcall">Add</button> <button type="button" class="btn-small btn-success" id="addcall">Add</button>
</div><!-- /.modal -->
<div class="modal fade" id="modal_api" style="width: 700px;" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> </div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="modaltitle"></h4>
<div id="modal_description"></div>
</div>
<div class="modal-body" id="modaltextarea" style="display: none;">
<input type="text" id="new_call_id" placeholder="new call id" name="content" style="width:100%" />
</div>
</div>
<div class="modal-footer">
<button type="button" id="del_api" class="btn-small btn-danger" style="float: left;">Delete</button>
<button type="button" class="btn-small" data-dismiss="modal" id="edit_close">Close</button>
<!-- <button type="button" class="btn-small btn-success" id="new_call">Add</button>-->
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

View File

@ -1,4 +1,5 @@
function init__SYSTEM_SAI_saimod_sys_files() { function init__SYSTEM_SAI_saimod_sys_files() {
$('.tooltip').tooltipster();
$('#filestab a').click(function (e) {e.preventDefault(); load_tab($(this).attr('tabname')); $(this).tab('show');}); $('#filestab a').click(function (e) {e.preventDefault(); load_tab($(this).attr('tabname')); $(this).tab('show');});
register_controlls(); register_controlls();
} }

View File

@ -44,6 +44,7 @@ class default_page extends \SYSTEM\PAGE\Page {
private static function js(){ private static function js(){
$result = '<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/libs/jquery.min.js').'" type="text/javascript"></script>'. $result = '<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/libs/jquery.min.js').'" type="text/javascript"></script>'.
'<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/libs/bootstrap.min.js').'" type="text/javascript"></script>'. '<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/libs/bootstrap.min.js').'" type="text/javascript"></script>'.
'<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/libs/tooltipster-master/js/jquery.tooltipster.min').'" type="text/javascript"></script>'.
'<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/sai.js').'" type="text/javascript"></script>'. '<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/sai.js').'" type="text/javascript"></script>'.
'<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/lang_switcher.js').'" type="text/javascript"></script>'. '<script src="'.\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/js/lang_switcher.js').'" type="text/javascript"></script>'.
'<script src="https://www.google.com/jsapi" type="text/javascript"></script>'. '<script src="https://www.google.com/jsapi" type="text/javascript"></script>'.

View File

@ -0,0 +1 @@
.DS_Store

View File

@ -0,0 +1,59 @@
Tooltipster
===========
A jQuery tooltip plugin by Caleb Jacob under MIT license.
Compatible with Mozilla Firefox, Google Chrome, IE8+ and others. Requires jQuery 1.7+
A reminder of options/methods lies below. For detailed documentation, visit http://iamceege.github.io/tooltipster/
Options
-------------------------
animation
arrow
arrowColor
autoClose
content
contentAsHTML
contentCloning
delay
minWidth
maxWidth
functionInit
functionBefore
functionReady
functionAfter
icon
iconCloning
iconDesktop
iconTheme
iconTouch
interactive
interactiveTolerance
multiple
offsetX
offsetY
onlyOne
position
positionTracker
speed
timer
theme
touchDevices
trigger
updateAnimation
Methods
-------------------------
$.fn.tooltipster('setDefaults', {})
$(...).tooltipster('show' [, callback])
$(...).tooltipster('hide' [, callback])
$(...).tooltipster('disable')
$(...).tooltipster('enable')
$(...).tooltipster('destroy')
$(...).tooltipster('content')
$(...).tooltipster('content', myNewContent)
$(...).tooltipster('reposition')
$(...).tooltipster('elementTooltip')
$(...).tooltipster('elementIcon')

View File

@ -0,0 +1,8 @@
{
"name": "tooltipster",
"version": "3.2.4",
"main": ["js/jquery.tooltipster.min.js", "css/tooltipster.css"],
"dependencies": {
"jquery": ">=1.7"
}
}

View File

@ -0,0 +1,12 @@
.tooltipster-light {
border-radius: 5px;
border: 1px solid #cccccc;
background: #ededed;
color: #666666;
}
.tooltipster-light .tooltipster-content {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
}

View File

@ -0,0 +1,12 @@
.tooltipster-noir {
border-radius: 0px;
border: 3px solid #2c2c2c;
background: #fff;
color: #2c2c2c;
}
.tooltipster-noir .tooltipster-content {
font-family: 'Georgia', serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
}

View File

@ -0,0 +1,12 @@
.tooltipster-punk {
border-radius: 5px;
border-bottom: 3px solid #f71169;
background: #2a2a2a;
color: #fff;
}
.tooltipster-punk .tooltipster-content {
font-family: 'Courier', monospace;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
}

View File

@ -0,0 +1,12 @@
.tooltipster-shadow {
border-radius: 5px;
background: #fff;
box-shadow: 0px 0px 14px rgba(0,0,0,0.3);
color: #2c2c2c;
}
.tooltipster-shadow .tooltipster-content {
font-family: 'Arial', sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
}

View File

@ -0,0 +1,274 @@
/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
.tooltipster-default {
border-radius: 5px;
border: 2px solid #000;
background: #4c4c4c;
color: #fff;
}
/* Use this next selector to style things like font-size and line-height: */
.tooltipster-default .tooltipster-content {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
overflow: hidden;
}
/* This next selector defines the color of the border on the outside of the arrow. This will automatically match the color and size of the border set on the main tooltip styles. Set display: none; if you would like a border around the tooltip but no border around the arrow */
.tooltipster-default .tooltipster-arrow .tooltipster-arrow-border {
/* border-color: ... !important; */
}
/* If you're using the icon option, use this next selector to style them */
.tooltipster-icon {
cursor: help;
margin-left: 4px;
}
/* This is the base styling required to make all Tooltipsters work */
.tooltipster-base {
padding: 0;
font-size: 0;
line-height: 0;
position: absolute;
left: 0;
top: 0;
z-index: 9999999;
pointer-events: none;
width: auto;
overflow: visible;
}
.tooltipster-base .tooltipster-content {
overflow: hidden;
}
/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */
.tooltipster-arrow {
display: block;
text-align: center;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.tooltipster-arrow span, .tooltipster-arrow-border {
display: block;
width: 0;
height: 0;
position: absolute;
}
.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span {
border-left: 8px solid transparent !important;
border-right: 8px solid transparent !important;
border-top: 8px solid;
bottom: -7px;
}
.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border {
border-left: 9px solid transparent !important;
border-right: 9px solid transparent !important;
border-top: 9px solid;
bottom: -7px;
}
.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span {
border-left: 8px solid transparent !important;
border-right: 8px solid transparent !important;
border-bottom: 8px solid;
top: -7px;
}
.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
border-left: 9px solid transparent !important;
border-right: 9px solid transparent !important;
border-bottom: 9px solid;
top: -7px;
}
.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border {
left: 0;
right: 0;
margin: 0 auto;
}
.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span {
left: 6px;
}
.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
left: 5px;
}
.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span {
right: 6px;
}
.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border {
right: 5px;
}
.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border {
border-top: 8px solid transparent !important;
border-bottom: 8px solid transparent !important;
border-left: 8px solid;
top: 50%;
margin-top: -7px;
right: -7px;
}
.tooltipster-arrow-left .tooltipster-arrow-border {
border-top: 9px solid transparent !important;
border-bottom: 9px solid transparent !important;
border-left: 9px solid;
margin-top: -8px;
}
.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border {
border-top: 8px solid transparent !important;
border-bottom: 8px solid transparent !important;
border-right: 8px solid;
top: 50%;
margin-top: -7px;
left: -7px;
}
.tooltipster-arrow-right .tooltipster-arrow-border {
border-top: 9px solid transparent !important;
border-bottom: 9px solid transparent !important;
border-right: 9px solid;
margin-top: -8px;
}
/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */
.tooltipster-fade {
opacity: 0;
-webkit-transition-property: opacity;
-moz-transition-property: opacity;
-o-transition-property: opacity;
-ms-transition-property: opacity;
transition-property: opacity;
}
.tooltipster-fade-show {
opacity: 1;
}
.tooltipster-grow {
-webkit-transform: scale(0,0);
-moz-transform: scale(0,0);
-o-transform: scale(0,0);
-ms-transform: scale(0,0);
transform: scale(0,0);
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
-ms-transition-property: -ms-transform;
transition-property: transform;
-webkit-backface-visibility: hidden;
}
.tooltipster-grow-show {
-webkit-transform: scale(1,1);
-moz-transform: scale(1,1);
-o-transform: scale(1,1);
-ms-transform: scale(1,1);
transform: scale(1,1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
}
.tooltipster-swing {
opacity: 0;
-webkit-transform: rotateZ(4deg);
-moz-transform: rotateZ(4deg);
-o-transform: rotateZ(4deg);
-ms-transform: rotateZ(4deg);
transform: rotateZ(4deg);
-webkit-transition-property: -webkit-transform, opacity;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
-ms-transition-property: -ms-transform;
transition-property: transform;
}
.tooltipster-swing-show {
opacity: 1;
-webkit-transform: rotateZ(0deg);
-moz-transform: rotateZ(0deg);
-o-transform: rotateZ(0deg);
-ms-transform: rotateZ(0deg);
transform: rotateZ(0deg);
-webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 1);
-webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
-moz-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
-ms-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
-o-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
}
.tooltipster-fall {
top: 0;
-webkit-transition-property: top;
-moz-transition-property: top;
-o-transition-property: top;
-ms-transition-property: top;
transition-property: top;
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
}
.tooltipster-fall-show {
}
.tooltipster-fall.tooltipster-dying {
-webkit-transition-property: all;
-moz-transition-property: all;
-o-transition-property: all;
-ms-transition-property: all;
transition-property: all;
top: 0px !important;
opacity: 0;
}
.tooltipster-slide {
left: -40px;
-webkit-transition-property: left;
-moz-transition-property: left;
-o-transition-property: left;
-ms-transition-property: left;
transition-property: left;
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
}
.tooltipster-slide.tooltipster-slide-show {
}
.tooltipster-slide.tooltipster-dying {
-webkit-transition-property: all;
-moz-transition-property: all;
-o-transition-property: all;
-ms-transition-property: all;
transition-property: all;
left: 0px !important;
opacity: 0;
}
/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */
.tooltipster-content-changing {
opacity: 0.5;
-webkit-transform: scale(1.1, 1.1);
-moz-transform: scale(1.1, 1.1);
-o-transform: scale(1.1, 1.1);
-ms-transform: scale(1.1, 1.1);
transform: scale(1.1, 1.1);
}

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="reset.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="../css/tooltipster.css" />
<script type="text/javascript" src="//code.jquery.com/jquery-1.7.0.min.js"></script>
<script type="text/javascript" src="../js/jquery.tooltipster.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.tooltip').tooltipster();
});
</script>
</head>
<body>
<section class="container tooltip" title="Parent container">
<a href="http://google.com" class="tooltip" title="Get your Google on">Google</a>
</section>
<div id="hi" style="width: 100px; height: 100px; margin: 0 0 0 500px; background: #f00; position: fixed; top: 100px; right: 100px;" class="tooltip" title="This is the tooltip"></div>
<section class="container">
<img src="map.png" usemap="#map" />
<map name="map">
<area shape="circle" coords="396,220,102" href="#" class="tooltip" title="Hello thar, mate!" />
</map>
</section>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,45 @@
@charset "UTF-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size:100%;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

View File

@ -0,0 +1,28 @@
/* Main */
body {
background-color: #dcdcdc;
color: #0b0b0b;
font-size: 16px;
line-height: 22px;
}
.container, #container {
width: 978px;
margin: 10px auto;
padding: 60px;
box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
background: #fff;
text-align: left;
display: block;
overflow: hidden;
}
.item {
width: 200px;
float: left;
padding: 10px;
margin: 10px;
background: #000;
color: #fff;
}

View File

@ -0,0 +1,49 @@
/* Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln { color: #000 } /* plain text */
@media screen {
.str { color: #080 } /* string content */
.kwd { color: #008 } /* a keyword */
.com { color: #800 } /* a comment */
.typ { color: #606 } /* a type name */
.lit { color: #066 } /* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun, .opn, .clo { color: #660 }
.tag { color: #008 } /* a markup tag name */
.atn { color: #606 } /* a markup attribute name */
.atv { color: #080 } /* a markup attribute value */
.dec, .var { color: #606 } /* a declaration; a variable name */
.fun { color: red } /* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print, projection {
.str { color: #060 }
.kwd { color: #006; font-weight: bold }
.com { color: #600; font-style: italic }
.typ { color: #404; font-weight: bold }
.lit { color: #044 }
.pun, .opn, .clo { color: #440 }
.tag { color: #006; font-weight: bold }
.atn { color: #404 }
.atv { color: #060 }
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 { background: #eee }

View File

@ -0,0 +1,45 @@
@charset "UTF-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size:100%;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

View File

@ -0,0 +1,678 @@
/*blue #0078c9
orange #ff5e3c */
@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700);
@font-face {
font-family: 'icomoon';
src:url('../images/icons/icomoon.eot');
src:url('../images/icons/icomoond41d.eot?#iefix') format('embedded-opentype'),
url('../images/icons/icomoon.svg#icomoon') format('svg'),
url('../images/icons/icomoon.woff') format('woff'),
url('../images/icons/icomoon.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
::selection {
background: #0078c9;
color: #fff;
}
::-moz-selection {
background: #0078c9;
color: #fff;
}
body {
color: #5d6365;
font-size: 1em;
line-height: 1.6em;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
background: #5d6365;
}
#background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#background img {
min-height: 100%;
min-width: 100%;
}
#background:before {
content: '';
display: block;
width: 100%;
height: 20%;
position: absolute;
bottom: 0;
background: -moz-linear-gradient(top, rgba(93,99,101,0) 0%, rgba(93,99,101,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(93,99,101,0)), color-stop(100%,rgba(93,99,101,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#005d6365', endColorstr='#5d6365',GradientType=0 ); /* IE6-9 */
}
#wrapper {
width: 100%;
max-width: 1300px;
margin: 0 auto;
position: relative;
box-shadow: 0.6em 0px 15px rgba(0,0,0,0.1), -0.6em 0px 15px rgba(0,0,0,0.1);
}
* {
-webkit-transition: all 300ms;
-moz-transition: all 300ms;
-o-transition: all 300ms;
-ms-transition: all 300ms;
transition: all 300ms;
}
h1 {
font-weight: 300;
font-size: 1.4em;
line-height: 1.4em;
margin-bottom: 1.8em;
}
h2 {
color: #a9b1b3;
font-weight: 300;
font-size: 4em;
line-height: 1.4em;
margin-bottom: 0.5em;
}
h3 {
font-size: 2em;
line-height: 1.4em;
margin-bottom: 0.7em;
padding-top: 1em;
}
h4 {
font-size: 1.4em;
line-height: 1.4em;
font-weight: 400;
margin-bottom: 1em;
}
p {
margin-bottom: 1.5em;
}
strong {
font-weight: 600;
}
a {
text-decoration: none;
color: #0078c9;
font-weight: 600;
}
a:hover {
color: #a9b1b3;
}
a.alt {
color: rgba(255,255,255,0.75);
}
a.alt:hover {
color: rgba(255,255,255,1);
}
a:before {
font-family: 'icomoon';
font-style: normal;
speak: none;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
a.button {
display: inline-block;
padding: 0.8em 1em;
border: 3px solid #ff5e3c;
border-radius: 6px;
color: #ff5e3c;
background: #fff;
font-weight: 600;
}
a.button:hover {
background: #ff5e3c;
color: #fff;
}
a.button.alt {
color: #ff5e3c;
border: none;
}
a.button.alt:hover {
background: #ff5e3c;
color: #fff;
border: none;
}
a.button:active {
-webkit-transform: scale3d(0.95,0.95,1);
-moz-transform: scale3d(0.95,0.95,1);
-o-transform: scale3d(0.95,0.95,1);
-ms-transform: scale3d(0.95,0.95,1);
transform: scale3d(0.95,0.95,1);
}
a.white {
color: #fff;
padding-bottom: 3px;
border-bottom: 1px solid rgba(255,255,255,0);
}
a.white:hover {
border-bottom: 1px solid rgba(255,255,255,1);
}
.row {
overflow: hidden;
}
header {
background: #fff;
max-width: 1300px;
box-shadow: 0px 3px 0px rgba(0,0,0,0.05);
}
header select {
display: none;
}
section {
width: 100%;
margin: 0 auto;
overflow: hidden;
border-bottom: 2px dashed #e5eaeb;
padding: 6em;
background: #fff;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
#talk {
border-bottom: none !important;
}
footer {
width: 100%;
margin: 0 auto;
padding: 6em;
background: #0078c9;
color: #fff;
box-sizing: border-box;
-moz-box-sizing: border-box;
text-align: center;
}
nav {
width: 100%;
max-width: 1300px;
box-sizing: border-box;
-moz-box-sizing: border-box;
background: #fff;
float: right;
z-index: 2;
text-align: right;
}
nav ul {
display: block;
width: auto;
float: right;
}
nav li {
display: inline-block;
margin: 0;
float: left;
}
nav a {
display: inline-block;
font-weight: 400;
color: #a9b1b3;
padding: 1.5em 0.75em;
}
nav a:hover {
background: #0078c9;
color: #fff;
}
#mobile-nav {
display: none;
}
#social {
width: auto;
position: absolute;
left: 0;
top: 0;
z-index: 3;
}
#social div {
float: left;
width: 90px;
padding: 1.5em 2em;
}
#tweet {
margin-top: 2px;
}
div#github {
position: relative;
bottom: 4px;
margin-left: 0px;
padding-top: 2em;
width: 90px;
}
#github a {
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
-ms-transition: none;
transition: none;
}
pre {
box-sizing: border-box;
-moz-box-sizing: border-box;
padding: 3em;
background: #e6eff1;
box-shadow: 0px 0px 20px rgba(0,0,0,0.0);
margin-bottom: 4em;
white-space: pre-wrap;
}
pre:hover {
background: #fff;
box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
}
pre:last-child {
margin-bottom: 0;
}
/*
-------------------------------------
Welcome
-------------------------------------
*/
#welcome {
text-align: center;
padding: 12em 0 9em;
color: #fff;
width: 100%;
border-bottom: none;
background: rgba(0,0,0,0.3);
}
#welcome h1 {
display: block;
max-width: 635px;
margin-left: auto;
margin-right: auto;
}
#tooltipster {
width: 100%;
max-width: 258px;
margin-bottom: 2em;
}
#browser-support {
margin-bottom: 2.8em;
}
#browser-support li {
display: inline-block;
margin: 0.25em;
font-size: 0;
line-height: 0;
}
#browser-support li img {
height: 42px;
opacity: 0.5;
}
#browser-support li img:hover {
opacity: 1;
}
#download {
font-size: 1.2em;
line-height: 1.4em;
width: 100%;
}
#download a.button {
margin-right: 0.6em;
}
#download a.button:before {
content: "\64";
padding-right: 1em;
font-size: 0.9em;
}
/*
-------------------------------------
Demos
-------------------------------------
*/
#demos ul {
display: block;
width: 100%;
font-size: 1.4em;
line-height: 1.4em;
}
#demos li {
display: block;
width: 50%;
font-weight: 400;
margin-bottom: 1em;
overflow: hidden;
padding-top: 1.4em;
padding-right: 2em;
box-sizing: border-box;
-moz-box-sizing: border-box;
float: left;
}
#demos span {
display: block;
border: 3px solid #ff5e3c;
border-radius: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
width: 5em;
height: 5em;
background: #ff5e3c;
color: #fff;
font-size: 0.6em;
line-height: 1em;
font-weight: 700;
padding: 1.8em 0 0 0;
text-align: center;
margin: -1.4em 1em 0 0;
text-transform: uppercase;
float: left;
}
#demos span:hover {
background: #fff !important;
color: #5d6365;
border: 3px solid #5d6365 !important;
cursor: pointer;
}
/*
-------------------------------------
Tooltips
-------------------------------------
*/
#demos span.tooltipster-icon {
cursor: help;
margin-left: 4px;
background: #0078c9;
border: 3px solid #0078c9;
width: 2.3em;
height: 2.3em;
padding: 0.4em 0 0;
margin: 2em 0 0 -3em;
}
.tooltipster-default .tooltipster-content {
font-family: 'Open Sans', sans-serif;
}
.tooltipster-default .tooltipster-content img {
float: left;
margin-right: 10px;
border: 2px solid #000;
}
.tooltipster-default .tooltipster-content p {
margin: 0;
}
.tooltipster-default .tooltipster-content a {
color: #fff;
border-bottom: 1px solid rgba(255,255,255,0.4);
}
.tooltipster-default .tooltipster-content a:hover {
color: #fff;
border-bottom: 1px solid rgba(255,255,255,1);
}
.tooltipster-blue {
background: #0078c9;
color: #fff;
border-radius: 5px;
}
.tooltipster-blue .tooltipster-content {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
}
.tooltipster-white {
background: #fff;
color: #0078c9;
border-radius: 5px;
}
.tooltipster-white .tooltipster-content {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
}
.tooltipster-pink {
background: url(../images/pattern-navy.png);
background-color: #ff3c70;
color: #fff;
border-radius: 5px;
box-shadow: inset -3px -3px 0 #ff3c70;
}
.tooltipster-pink .tooltipster-content {
font-family: 'Courier', monospace;
font-weight: 400;
font-size: 16px;
line-height: 16px;
padding: 15px 18px;
}
/*
-------------------------------------
Options
-------------------------------------
*/
table {
width: 100%;
}
table h4 {
margin-bottom: 0;
}
tr:nth-child(odd) {
background: #f4f5f7;
}
td {
padding: 2em;
}
td h4 {
font-family: 'Courier', monospace;
color: #0078c9;
}
/*
-------------------------------------
Themes
-------------------------------------
*/
#themes .themes span {
display: inline-block;
padding: 1em;
margin-right: 1em;
margin-bottom: 1em;
opacity: 0.8;
}
.tooltipster-default-preview {
border-radius: 5px;
border: 2px solid #000;
background: #4c4c4c;
color: #fff;
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
font-weight: 400;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.tooltipster-light-preview {
border-radius: 5px;
border: 1px solid #cccccc;
background: #ededed;
color: #666666;
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
font-weight: 400;
}
.tooltipster-punk-preview {
border-radius: 5px;
border-bottom: 3px solid #f71169;
background: #2a2a2a;
color: #fff;
font-family: 'Courier', monospace;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
font-weight: 400;
}
.tooltipster-noir-preview {
border-radius: 0px;
border: 3px solid #2c2c2c;
background: #fff;
color: #2c2c2c;
font-family: 'Georgia', serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
font-weight: 400;
}
.tooltipster-shadow-preview {
border-radius: 5px;
background: #fff;
box-shadow: 0px 0px 14px rgba(0,0,0,0.3);
color: #2c2c2c;
font-family: 'Arial', sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
font-weight: 400;
}
/*
-------------------------------------
Talk
-------------------------------------
*/
#talk h3 {
margin-bottom: 1em;
}
/*
-------------------------------------
Breakpoints
-------------------------------------
*/
@media all and (max-width : 1100px) {
#tweet, #gplus {
display: none;
}
#demos li {
width: 100%;
}
table, tr, td {
display: block;
}
td {
padding: 2em 2em 0 2em;
}
td:last-child {
padding-bottom: 2em;
}
}
@media all and (max-width : 920px) {
#demos ul {
width: 100%;
padding: 0;
}
}
@media all and (max-width : 820px) {
nav ul {
display: none;
}
#social div {
padding: 0.5em 0.7em;
}
header {
padding: 0;
}
header select {
display: block;
float: right;
margin: 1em 1em;
}
section {
padding: 3em;
}
#welcome {
padding: 7.4em 3em 6em;
}
#download span {
display: block;
margin-top: 0.5em;
}
}
@media all and (max-width : 450px) {
table h4 {
font-size: 1em;
line-height: 1em;
}
section {
padding: 2em;
}
h2 {
font-size: 3em;
line-height: 1.2em;
margin-bottom: 0.23em;
}
h3 {
font-size: 1.4em;
line-height: 1.4em;
margin-bottom: 1.3em;
}
h4 {
font-size: 1.2em;
}
pre {
padding: 1em;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

View File

@ -0,0 +1,16 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>
This is a custom SVG font generated by IcoMoon.
<iconset grid="16"></iconset>
</metadata>
<defs>
<font id="icomoon" horiz-adv-x="512" >
<font-face units-per-em="512" ascent="480" descent="-32" />
<missing-glyph horiz-adv-x="512" />
<glyph unicode="&#x64;" d="M 57.367,340.829 L 164.841,340.829 L 164.841,480.465 L 374.295,480.465 L 374.295,340.829 L 468.131,340.829 L 262.749,111.686 ZM 513.932,108.102 L 513.932-31.535 L 1.932-31.535 L 1.932,108.102 L 71.75,108.102 L 71.75,38.284 L 444.113,38.284 L 444.113,108.102 Z" />
<glyph unicode="&#x6e;" d="M0.00,480.00L 512.00,480.00L 512.00,371.386L0.00,371.386zM0.00,76.614L 512.00,76.614L 512.00-32.00L0.00-32.00zM0.00,286.068L 512.00,286.068L 512.00,177.455L0.00,177.455z" />
<glyph unicode="&#x20;" horiz-adv-x="256" />
<glyph class="hidden" unicode="&#xf000;" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" />
</font></defs></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1,212 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="260.308px" height="78.658px" viewBox="0 0 260.308 78.658" enable-background="new 0 0 260.308 78.658"
xml:space="preserve">
<rect x="126.154" y="5.329" fill="#FFFFFF" width="20" height="12"/>
<g>
<path fill="#FFFFFF" d="M38.989,12.764c1.728,0.192,3.39,0.364,4.985,0.515c1.594,0.154,3.127,0.229,4.599,0.229
c0.419,0,0.82-0.09,1.203-0.272c0.382-0.18,0.716-0.424,1.003-0.73c0.287-0.305,0.516-0.639,0.688-1.003
c0.172-0.362,0.258-0.735,0.258-1.117c0-0.61-0.186-1.165-0.559-1.662c-0.373-0.496-1.017-0.839-1.934-1.031
c-3.954-0.706-7.75-1.193-11.389-1.461c-3.64-0.267-7.121-0.402-10.445-0.402c-2.445,0-4.813,0.057-7.105,0.172
C18,6.116,15.852,6.327,13.845,6.632c-2.005,0.307-3.844,0.73-5.516,1.275C6.658,8.451,5.226,9.145,4.032,9.984
c-1.194,0.841-2.12,1.858-2.779,3.051c-0.659,1.195-0.989,2.593-0.989,4.198c0.038,0.688,0.229,1.299,0.573,1.833
c0.287,0.458,0.745,0.88,1.375,1.261C2.843,20.709,3.731,20.9,4.877,20.9s2.029-0.187,2.65-0.559
c0.621-0.373,1.075-0.783,1.361-1.232c0.286-0.448,0.453-0.864,0.501-1.247c0.047-0.381,0.071-0.592,0.071-0.63
c0-0.725,0.187-1.355,0.559-1.892c0.373-0.534,0.878-0.993,1.519-1.375c0.64-0.381,1.385-0.696,2.235-0.946
c0.85-0.248,1.766-0.453,2.75-0.616c0.984-0.162,1.996-0.291,3.038-0.387c1.041-0.095,2.067-0.181,3.08-0.258
c-1.166,3.63-2.25,6.925-3.252,9.885c-1.003,2.961-1.934,5.669-2.793,8.123c-0.859,2.456-1.644,4.705-2.35,6.748
c-0.707,2.044-1.337,3.978-1.891,5.802c-0.555,1.824-1.036,3.577-1.447,5.258c-0.411,1.682-0.741,3.391-0.989,5.128
c-0.114,0.44-0.171,0.842-0.171,1.203c0,1.147,0.353,1.978,1.06,2.494s1.604,0.772,2.694,0.772c0.362,0,0.754-0.109,1.174-0.328
c0.42-0.22,0.826-0.531,1.218-0.933c0.391-0.401,0.745-0.873,1.06-1.418c0.315-0.545,0.549-1.141,0.702-1.791
c0.362-1.412,0.826-3.103,1.39-5.07c0.563-1.968,1.17-4.112,1.819-6.433c0.649-2.322,1.323-4.757,2.02-7.307
c0.697-2.551,1.365-5.11,2.006-7.679c0.64-2.569,1.227-5.086,1.762-7.551c0.534-2.464,0.974-4.765,1.318-6.905
c1.948,0.097,3.84,0.239,5.673,0.43C35.478,12.382,37.259,12.573,38.989,12.764z"/>
<path fill="#FFFFFF" d="M256.705,38.809c-0.764,0.479-1.604,0.908-2.521,1.29c-0.916,0.382-1.805,0.572-2.664,0.572
c-0.306,0-0.598-0.057-0.874-0.172c-0.277-0.114-0.525-0.309-0.745-0.587c-0.22-0.276-0.397-0.645-0.53-1.104
c-0.134-0.458-0.201-1.031-0.201-1.718c0-0.401,0.049-0.903,0.144-1.505c0.096-0.601,0.201-1.222,0.315-1.861
c0.115-0.639,0.22-1.251,0.315-1.834c0.096-0.582,0.144-1.036,0.144-1.361c0-0.42-0.077-0.797-0.229-1.133
c-0.153-0.333-0.358-0.615-0.616-0.845c-0.257-0.229-0.559-0.405-0.902-0.53c-0.344-0.123-0.697-0.186-1.06-0.186
c-1.052,0-1.978,0.282-2.78,0.845c-0.802,0.564-1.519,1.257-2.148,2.078c-0.631,0.822-1.185,1.633-1.662,2.579
c-0.478,0.944-0.907,1.493-1.289,2.493h-0.315c-0.039-1-0.11-1.819-0.11-2.822c0-1.002,0-1.856,0-2.564
c0-0.592,0.014-1.06-0.016-1.404c-0.029-0.344-0.098-0.606-0.23-0.788c-0.136-0.18-0.333-0.295-0.609-0.343
c-0.277-0.048-0.662-0.072-1.158-0.072c-0.439,0-0.806,0.024-1.102,0.072s-0.542,0.143-0.743,0.286
c-0.199,0.144-0.378,0.34-0.53,0.588c-0.152,0.249-0.306,0.583-0.457,1.002c-0.25,0.631-0.498,1.433-0.745,2.407
c-0.249,0.974-0.498,2.044-0.746,3.209s-0.481,2.392-0.701,3.681c-0.215,1.26-0.401,2.496-0.562,3.709
c-0.637,0.582-1.369,1.188-2.204,1.821c-1.07,0.812-2.206,1.562-3.409,2.249c-1.203,0.688-2.441,1.261-3.711,1.72
c-1.271,0.458-2.478,0.688-3.624,0.688c-0.363,0-0.702-0.038-1.018-0.114c-0.315-0.077-0.615-0.21-0.902-0.401
c-0.286-0.19-0.569-0.459-0.846-0.803s-0.558-0.773-0.845-1.29c1.662-0.457,3.204-1.097,4.628-1.92
c1.422-0.82,2.649-1.756,3.681-2.808c1.032-1.05,1.838-2.167,2.422-3.353c0.583-1.183,0.873-2.367,0.873-3.552
c0-1.088-0.189-2.071-0.572-2.951c-0.383-0.879-0.913-1.628-1.59-2.25c-0.679-0.621-1.476-1.103-2.394-1.447
c-0.916-0.344-1.909-0.515-2.979-0.515c-1.317,0-2.517,0.234-3.596,0.702c-1.08,0.469-2.054,1.099-2.923,1.891
c-0.869,0.793-1.628,1.71-2.277,2.75c-0.65,1.042-1.188,2.135-1.619,3.281c-0.43,1.146-0.749,2.316-0.959,3.511
c-0.211,1.193-0.315,2.326-0.315,3.395c0,0.029,0.003,0.058,0.003,0.087c-0.691,0.585-1.412,1.145-2.167,1.675
c-0.773,0.545-1.558,1.047-2.349,1.504c-0.794,0.459-1.548,0.855-2.265,1.189c-0.716,0.336-1.375,0.598-1.977,0.788
c-0.602,0.191-1.104,0.287-1.504,0.287c-0.65,0-1.238-0.101-1.762-0.301c-0.526-0.201-0.971-0.524-1.333-0.975
c-0.363-0.448-0.641-1.025-0.831-1.733c-0.191-0.706-0.287-1.576-0.287-2.608c0-0.4,0.004-0.838,0.015-1.317
c0.009-0.478,0.023-0.974,0.043-1.49c0.019-0.515,0.038-1.035,0.058-1.562c0.019-0.524,0.037-1.035,0.057-1.533
c0.058-1.146,0.124-2.31,0.201-3.495c0.478-0.592,0.997-1.176,1.562-1.912c0.563-0.734,1.121-2.169,1.677-2.169h11.002
c0.458,0,0.878-0.289,1.261-0.71c0.382-0.42,0.573-1.005,0.573-1.675c0-0.553-0.086-1.031-0.258-1.396
c-0.172-0.362-0.449-0.562-0.831-0.581c-0.325-0.019-0.735-0.042-1.232-0.063c-0.496-0.019-1.031-0.041-1.604-0.06
c-0.573-0.02-1.165-0.044-1.776-0.073c-0.611-0.028-1.18-0.052-1.705-0.071c-0.525-0.019-0.988-0.034-1.39-0.043
c-0.4-0.01-0.687-0.024-0.859-0.045c0.688-1.088,1.342-2.186,1.963-3.294c0.62-1.107,1.16-2.2,1.619-3.281
c0.458-1.079,0.82-2.139,1.089-3.18c0.268-1.04,0.4-2.029,0.4-2.966c0-1.107-0.128-2.172-0.386-3.195
c-0.259-1.021-0.627-1.914-1.104-2.679c-0.478-0.763-1.057-1.375-1.733-1.834c-0.679-0.458-1.429-0.688-2.25-0.688
c-1.279,0-2.502,0.569-3.668,1.705c-1.165,1.138-2.239,2.646-3.222,4.527c-0.985,1.883-1.873,4.031-2.666,6.447
c-0.793,2.417-1.447,4.914-1.962,7.492c-0.191,0.039-0.54,0.053-1.046,0.043c-0.506-0.008-1.08-0.022-1.72-0.043
c-0.64-0.018-1.309-0.022-2.005-0.014c-0.698,0.01-1.338,0.063-1.92,0.158c-0.583,0.096-1.061,0.244-1.433,0.444
c-0.373,0.2-0.56,0.493-0.56,0.874c0,0.172,0.011,0.378,0.029,0.616c0.02,0.239,0.086,0.468,0.2,0.688
c0.115,0.221,0.297,0.412,0.545,0.573c0.249,0.163,0.601,0.272,1.06,0.33c1.031,0.114,1.82,0.21,2.364,0.286
c0.544,0.078,0.993,0.15,1.347,0.215c0.354,0.067,0.688,0.135,1.003,0.201c0.315,0.067,0.759,0.139,1.332,0.215
c-0.172,1.281-0.306,2.57-0.401,3.868c-0.096,1.299-0.144,2.522-0.144,3.668c0,2.636,0.158,5.018,0.458,7.177
c-0.455,0.293-0.908,0.56-1.36,0.803c-0.907,0.486-1.79,0.931-2.649,1.332c-0.86,0.401-1.687,0.788-2.479,1.16
c-0.792,0.373-1.533,0.789-2.22,1.246c0-1.222-0.043-2.281-0.129-3.181c-0.086-0.896-0.201-1.689-0.345-2.377
c-0.143-0.688-0.29-1.294-0.444-1.82c-0.152-0.523-0.3-1.021-0.443-1.49c-0.143-0.467-0.258-0.945-0.344-1.432
c-0.086-0.488-0.129-1.026-0.129-1.619c0.057-0.209,0.281-0.53,0.674-0.959c0.391-0.43,0.806-0.903,1.246-1.418
c0.439-0.516,0.84-1.05,1.203-1.604c0.362-0.553,0.545-1.061,0.545-1.519c0-0.229-0.02-0.501-0.058-0.817
c-0.039-0.315-0.172-0.616-0.401-0.902s-0.593-0.53-1.089-0.731c-0.497-0.201-1.204-0.3-2.12-0.3c-0.555,0-1.056,0.081-1.504,0.243
c-0.449,0.164-0.859,0.373-1.232,0.631c-0.373,0.258-0.712,0.55-1.017,0.874c-0.307,0.326-0.584,0.66-0.832,1.003
c-1.223,1.529-2.216,2.804-2.979,3.825c-0.764,1.023-1.414,1.887-1.948,2.594c-0.535,0.708-0.999,1.318-1.39,1.833
c-0.392,0.516-0.826,1.027-1.304,1.533c-0.479,0.508-1.051,1.066-1.72,1.677c-0.668,0.612-1.538,1.375-2.606,2.292
c-0.154,0.135-0.384,0.315-0.688,0.544c-0.305,0.229-0.611,0.498-0.916,0.803c-0.307,0.307-0.574,0.654-0.802,1.046
c-0.229,0.393-0.345,0.817-0.345,1.274c0,0.117,0.004,0.227,0.011,0.331c-1.172,0.547-2.45,0.994-3.851,1.331
c-1.586,0.383-3.342,0.573-5.271,0.573l-0.172-0.602c1.719-0.763,3.204-1.627,4.455-2.593c1.25-0.965,2.283-2,3.095-3.109
c0.812-1.106,1.408-2.268,1.791-3.481c0.381-1.211,0.572-2.468,0.572-3.767c0-1.623-0.22-2.994-0.658-4.112
c-0.44-1.117-1.042-2.028-1.806-2.736c-0.765-0.707-1.652-1.218-2.664-1.533c-1.013-0.315-2.103-0.472-3.267-0.472
c-1.566,0-2.904,0.286-4.012,0.859c-1.108,0.573-2.059,1.346-2.851,2.32c-0.793,0.975-1.443,2.121-1.949,3.438
s-0.927,2.713-1.261,4.183c-0.334,1.472-0.682,2.99-0.9,4.557c-0.033,0.24-0.169,0.475-0.169,0.713v-0.484
c-1,0.516-1.288,1.138-2.108,1.862c-0.821,0.727-1.626,1.429-2.487,2.106c-0.859,0.679-1.691,1.257-2.532,1.733
c-0.841,0.479-1.595,0.716-2.283,0.716c-0.593,0-0.98-0.252-1.17-0.759c-0.191-0.506-0.285-1.189-0.285-2.049
c0-0.879,0.098-1.866,0.288-2.965s0.43-2.226,0.717-3.382c0.287-1.154,0.591-2.311,0.917-3.467c0.324-1.154,0.63-2.234,0.916-3.237
c0.287-1.003,0.525-1.9,0.717-2.694c0.19-0.792,0.287-1.398,0.287-1.82c0-0.496-0.144-0.892-0.43-1.189
c-0.287-0.295-0.832-0.443-1.633-0.443c-0.44,0-0.931,0.052-1.476,0.157c-0.545,0.106-1.07,0.269-1.576,0.487
c-0.507,0.221-0.96,0.507-1.361,0.86s-0.668,0.779-0.803,1.275c-0.343,1.433-0.74,2.999-1.188,4.699
c-0.449,1.7-0.874,3.405-1.275,5.114c-0.158,0.677-0.299,1.336-0.439,1.995c-0.35,0.342-0.717,0.681-1.108,1.014
c-0.707,0.602-1.447,1.175-2.221,1.719c-0.773,0.545-1.558,1.047-2.35,1.504c-0.793,0.459-1.547,0.855-2.264,1.189
c-0.716,0.336-1.375,0.598-1.977,0.788c-0.602,0.191-1.104,0.287-1.504,0.287c-0.65,0-1.237-0.101-1.762-0.301
c-0.526-0.201-0.97-0.524-1.332-0.975c-0.364-0.448-0.641-1.025-0.831-1.733c-0.191-0.706-0.287-1.576-0.287-2.608
c0-0.4,0.004-0.838,0.014-1.317c0.009-0.478,0.023-0.974,0.043-1.49c0.019-0.515,0.038-1.035,0.058-1.562
c0.019-0.524,0.038-1.035,0.057-1.533c0.057-1.146,0.124-2.31,0.2-3.495c0.477-0.592,0.998-1.176,1.562-1.912
c0.563-0.734,1.122-2.169,1.676-2.169h11.003c0.459,0,0.878-0.289,1.261-0.71c0.382-0.42,0.573-1.005,0.573-1.675
c0-0.553-0.086-1.031-0.258-1.396c-0.172-0.362-0.45-0.562-0.831-0.581c-0.326-0.019-0.736-0.042-1.233-0.063
c-0.497-0.019-1.031-0.041-1.604-0.06c-0.573-0.02-1.166-0.044-1.776-0.073c-0.612-0.028-1.18-0.052-1.705-0.071
s-0.988-0.034-1.39-0.043c-0.4-0.01-0.688-0.024-0.859-0.045c0.688-1.088,1.341-2.186,1.963-3.294c0.62-1.107,1.16-2.2,1.619-3.281
c0.458-1.079,0.82-2.139,1.088-3.18c0.267-1.04,0.401-2.029,0.401-2.966c0-1.107-0.129-2.172-0.387-3.195
c-0.258-1.021-0.626-1.914-1.103-2.679c-0.479-0.763-1.057-1.375-1.734-1.834c-0.678-0.458-1.428-0.688-2.249-0.688
c-1.281,0-2.503,0.569-3.667,1.705c-1.166,1.138-2.24,2.646-3.224,4.527c-0.984,1.883-1.873,4.031-2.665,6.447
c-0.793,2.417-1.447,4.914-1.962,7.492c-0.191,0.039-0.54,0.053-1.046,0.043c-0.42-0.007-0.896-0.019-1.407-0.035
c0.1-0.203,0.205-0.405,0.304-0.61c0.917-1.891,1.724-3.776,2.421-5.659c0.697-1.881,1.251-3.753,1.662-5.616
c0.411-1.862,0.616-3.69,0.616-5.487c0-0.802-0.062-1.59-0.186-2.364c-0.125-0.773-0.339-1.466-0.645-2.078
c-0.306-0.61-0.727-1.103-1.261-1.476c-0.535-0.372-1.213-0.559-2.034-0.559c-1.204,0-2.389,0.364-3.553,1.089
c-1.166,0.726-2.283,1.725-3.352,2.994c-1.071,1.271-2.092,2.761-3.066,4.47c-0.974,1.711-1.877,3.549-2.708,5.516
c-0.831,1.968-1.576,4.021-2.235,6.16c-0.659,2.14-1.228,4.27-1.704,6.389c-0.479,2.121-0.842,4.179-1.089,6.175
c-0.011,0.085-0.017,0.166-0.028,0.25c-0.952-0.891-1.959-1.701-3.023-2.428c-1.386-0.946-2.871-1.7-4.456-2.264
c-1.586-0.563-3.286-0.845-5.101-0.845c-2.12,0-4.03,0.386-5.73,1.16c-1.701,0.773-3.138,1.834-4.312,3.181
c-0.559,0.64-1.05,1.337-1.486,2.086c-0.021-0.021-0.04-0.045-0.061-0.066c-1.194-1.222-2.483-2.306-3.868-3.251
c-1.386-0.946-2.87-1.7-4.456-2.264c-1.585-0.563-3.285-0.845-5.1-0.845c-2.12,0-4.03,0.386-5.73,1.16
c-1.701,0.773-3.138,1.834-4.312,3.181c-1.174,1.347-2.077,2.933-2.708,4.756c-0.63,1.825-0.946,3.788-0.946,5.888
c0,1.529,0.176,3.037,0.53,4.527s0.912,2.828,1.676,4.011c0.764,1.186,1.743,2.146,2.937,2.88c1.193,0.736,2.631,1.104,4.312,1.104
c1.165,0,2.264-0.2,3.295-0.602c1.032-0.401,1.981-0.945,2.851-1.634c0.869-0.688,1.643-1.498,2.32-2.435s1.251-1.938,1.719-3.009
c0.468-1.069,0.826-2.178,1.075-3.324c0.248-1.146,0.372-2.282,0.372-3.409s-0.139-2.308-0.415-3.539
c-0.277-1.232-0.692-2.401-1.247-3.509l0.229-0.315c0.688,0.458,1.509,1.027,2.464,1.705c0.955,0.679,1.924,1.399,2.908,2.163
c0.217,0.169,0.42,0.341,0.631,0.51c-0.422,1.535-0.646,3.158-0.646,4.877c0,1.529,0.177,3.037,0.53,4.527
c0.354,1.49,0.913,2.828,1.676,4.011c0.764,1.186,1.743,2.146,2.937,2.88c1.193,0.736,2.631,1.104,4.312,1.104
c1.165,0,2.264-0.2,3.294-0.602c1.032-0.401,1.981-0.945,2.852-1.634c0.869-0.688,1.643-1.498,2.321-2.435
c0.677-0.937,1.251-1.938,1.719-3.009c0.468-1.069,0.826-2.178,1.074-3.324s0.373-2.282,0.373-3.409s-0.14-2.308-0.416-3.539
c-0.277-1.232-0.693-2.401-1.246-3.509l0.229-0.315c0.688,0.458,1.508,1.027,2.463,1.705c0.955,0.679,1.924,1.399,2.908,2.163
c0.312,0.243,0.61,0.49,0.912,0.736c-0.002,0.165-0.009,0.333-0.009,0.496c0,2.216,0.187,4.333,0.559,6.346
c0.372,2.017,0.888,3.788,1.547,5.315c0.659,1.529,1.433,2.747,2.321,3.653c0.888,0.908,1.848,1.361,2.879,1.361
c0.648,0,1.347-0.091,2.091-0.272c0.745-0.181,1.509-0.424,2.292-0.73s1.562-0.653,2.335-1.046
c0.773-0.391,1.523-0.788,2.249-1.188c1.323-0.76,2.658-1.608,4.005-2.538c0.088,0.221,0.17,0.452,0.265,0.661
c0.745,1.652,1.671,2.918,2.779,3.796c1.107,0.879,2.388,1.318,3.84,1.318c0.706,0,1.494-0.134,2.364-0.401
c0.869-0.266,1.862-0.667,2.979-1.203c1.118-0.534,2.393-1.204,3.825-2.006c0.948-0.53,1.992-1.125,3.115-1.773
c0.023,0.711,0.097,1.381,0.251,1.988c0.182,0.716,0.481,1.324,0.902,1.82c0.42,0.496,0.97,0.883,1.647,1.16
c0.678,0.277,1.514,0.415,2.507,0.415c1.108,0,2.278-0.2,3.51-0.602s2.44-0.902,3.625-1.505c1.11-0.563,2.143-1.184,3.111-1.849
c-0.79,1.34-1.534,2.659-2.223,3.955c-0.554,1.05-1.093,2.134-1.619,3.251c-0.524,1.119-0.998,2.218-1.418,3.296
c-0.42,1.079-0.753,2.11-1.002,3.095c-0.248,0.983-0.373,1.866-0.373,2.65c0,1.356,0.091,2.641,0.272,3.854
c0.183,1.214,0.488,2.273,0.917,3.181c0.43,0.907,1.008,1.629,1.733,2.163c0.727,0.534,1.633,0.803,2.722,0.803
c1.356,0,2.666-0.545,3.926-1.634c1.261-1.089,2.378-2.636,3.353-4.642c0.974-2.006,1.815-4.427,2.399-7.264
c0.58-2.836,0.938-5.992,0.938-9.47v-0.516c2,0.229,2.777,0.426,3.703,0.588c0.928,0.162,1.606,0.292,2.104,0.387
c0.496,0.096,0.829,0.163,1.029,0.201c0.2,0.037,0.36,0.057,0.493,0.057c1.108,0,2.226-0.157,3.362-0.473s2.221-0.735,3.252-1.261
c0.83-0.422,1.592-0.916,2.316-1.451c0.066,0.128,0.128,0.257,0.201,0.376c0.459,0.728,1.056,1.313,1.792,1.763
c0.735,0.45,1.59,0.779,2.564,0.989s2.024,0.313,3.151,0.313c1.566,0,3.224-0.176,4.972-0.529c1.747-0.352,3.476-0.835,5.186-1.446
c1.709-0.61,3.343-1.318,4.899-2.121c1.508-0.777,2.837-1.608,3.995-2.493c0.154,0.424,0.315,0.833,0.489,1.219
c0.746,1.652,1.672,2.918,2.779,3.796c1.107,0.879,2.388,1.318,3.84,1.318c0.706,0,1.494-0.134,2.363-0.401
c0.869-0.266,1.863-0.667,2.98-1.203c1.117-0.534,2.393-1.204,3.825-2.006c1.231-0.69,2.621-1.484,4.15-2.373
c0.396,0.868,0.876,1.669,1.465,2.388c0.898,1.099,2.021,1.972,3.367,2.621c1.347,0.65,2.917,0.975,4.714,0.975
c1.146,0,2.277-0.129,3.396-0.387c1.117-0.258,2.195-0.603,3.236-1.032c1.042-0.429,2.035-0.921,2.981-1.476
c0.944-0.553,1.827-1.117,2.649-1.689c0.213-0.15,0.419-0.312,0.628-0.468c0.021,0.435,0.053,0.865,0.103,1.284
c0.086,0.717,0.258,1.356,0.516,1.92c0.259,0.563,0.626,1.013,1.104,1.346c0.477,0.335,1.107,0.502,1.891,0.502
c0.345,0,0.66-0.062,0.945-0.187c0.287-0.123,0.554-0.338,0.803-0.645c0.248-0.306,0.492-0.701,0.73-1.189
c0.238-0.487,0.491-0.776,0.76-1.521l5.129-13.971h0.458c0.152,1,0.354,2.065,0.602,3.241c0.248,1.173,0.63,2.07,1.146,3.016
c0.516,0.946,1.212,1.629,2.092,2.211c0.878,0.583,2.033,0.834,3.467,0.834c0.803,0,1.59-0.14,2.364-0.379
c0.772-0.237,1.519-0.544,2.234-0.898c0.717-0.353,1.39-0.736,2.02-1.138c0.631-0.4,1.194-0.766,1.691-1.091l0.43-6.706
C258.481,37.626,257.602,38.256,256.705,38.809z M194.199,19.612c0.411-1.642,0.851-3.146,1.318-4.513
c0.468-1.365,0.955-2.487,1.462-3.367c0.505-0.878,1.007-1.318,1.504-1.318c0.362,0,0.645,0.077,0.846,0.229
c0.2,0.153,0.348,0.344,0.444,0.573c0.095,0.229,0.157,0.473,0.187,0.73c0.028,0.258,0.043,0.493,0.043,0.702
c0,0.612-0.163,1.395-0.488,2.35c-0.325,0.955-0.736,1.982-1.231,3.08c-0.498,1.099-1.056,2.216-1.677,3.352
c-0.621,1.138-1.218,2.192-1.791,3.167c-0.306-0.038-0.602-0.072-0.888-0.1c-0.286-0.029-0.573-0.062-0.859-0.101
C193.412,22.85,193.789,21.255,194.199,19.612z M106.609,19.612c0.411-1.642,0.849-3.146,1.318-4.513
c0.468-1.365,0.955-2.487,1.462-3.367c0.505-0.878,1.006-1.318,1.504-1.318c0.362,0,0.645,0.077,0.845,0.229
c0.201,0.153,0.348,0.344,0.444,0.573s0.158,0.473,0.187,0.73c0.029,0.258,0.043,0.493,0.043,0.702c0,0.612-0.163,1.395-0.487,2.35
c-0.325,0.955-0.736,1.982-1.232,3.08c-0.497,1.099-1.056,2.216-1.676,3.352c-0.621,1.138-1.218,2.192-1.791,3.167
c-0.306-0.038-0.602-0.072-0.888-0.1c-0.287-0.029-0.573-0.062-0.86-0.101C105.821,22.85,106.198,21.255,106.609,19.612z
M44.575,43.036c-0.277,1.213-0.645,2.32-1.103,3.322c-0.459,1.004-0.994,1.834-1.604,2.493c-0.612,0.659-1.242,0.988-1.892,0.988
c-0.745,0-1.385-0.157-1.919-0.473c-0.535-0.314-0.965-0.734-1.29-1.261c-0.325-0.524-0.564-1.14-0.716-1.848
c-0.153-0.706-0.229-1.462-0.229-2.264c0-1.164,0.153-2.378,0.458-3.64c0.305-1.26,0.725-2.41,1.26-3.451s1.156-1.896,1.863-2.565
c0.706-0.667,1.451-1.002,2.235-1.002c0.592,0,1.098,0.163,1.519,0.487c0.42,0.325,0.763,0.765,1.032,1.318
c0.267,0.554,0.467,1.209,0.602,1.962c0.133,0.756,0.201,1.572,0.201,2.451C44.991,40.663,44.852,41.823,44.575,43.036z
M69.59,43.036c-0.277,1.213-0.645,2.32-1.104,3.322c-0.458,1.004-0.994,1.834-1.604,2.493c-0.612,0.659-1.242,0.988-1.891,0.988
c-0.746,0-1.386-0.157-1.92-0.473c-0.535-0.314-0.965-0.734-1.289-1.261c-0.326-0.524-0.564-1.14-0.717-1.848
c-0.153-0.706-0.229-1.462-0.229-2.264c0-1.164,0.152-2.378,0.458-3.64c0.305-1.26,0.726-2.41,1.261-3.451
c0.534-1.041,1.155-1.896,1.862-2.565c0.706-0.667,1.451-1.002,2.234-1.002c0.592,0,1.099,0.163,1.519,0.487
c0.42,0.325,0.764,0.765,1.032,1.318c0.267,0.554,0.468,1.209,0.602,1.962c0.133,0.756,0.2,1.572,0.2,2.451
C70.005,40.663,69.866,41.823,69.59,43.036z M88.085,26.76c0.267-1.938,0.63-3.825,1.089-5.659
c0.458-1.833,0.979-3.561,1.562-5.186c0.582-1.624,1.193-3.046,1.833-4.27c0.64-1.222,1.279-2.192,1.92-2.908
c0.64-0.716,1.236-1.075,1.791-1.075c0.152,0,0.244,0.196,0.272,0.587c0.028,0.393,0.043,0.866,0.043,1.418
c-0.172,1.739-0.573,3.616-1.203,5.63c-0.631,2.016-1.375,4.036-2.235,6.061s-1.773,3.993-2.737,5.902
c-0.965,1.911-1.876,3.63-2.736,5.158C87.683,30.586,87.817,28.701,88.085,26.76z M95.534,45.6
c-0.516,0.345-1.051,0.684-1.604,1.017c-0.554,0.336-1.094,0.631-1.619,0.89c-0.526,0.257-1.022,0.464-1.49,0.615
c-0.468,0.153-0.884,0.229-1.247,0.229c-0.153,0-0.315-0.109-0.487-0.33c-0.172-0.219-0.335-0.515-0.487-0.888
c-0.153-0.373-0.324-0.793-0.429-1.261c-0.104-0.467-0.198-0.95-0.198-1.447v-0.401c0-0.381,0.174-0.773,0.27-1.174
c0.096-0.401,0.211-0.778,0.307-1.133c0.096-0.353,0.207-0.682,0.312-0.988c0.105-0.305,0.21-0.553,0.306-0.744
c0.878-1.719,1.823-3.482,2.826-5.287c1.002-1.805,2.002-3.639,2.996-5.501c0.189-0.355,0.371-0.714,0.558-1.07
c0.531,0.076,0.972,0.146,1.32,0.21c0.353,0.067,0.688,0.135,1.002,0.201c0.315,0.067,0.76,0.139,1.333,0.215
c-0.172,1.281-0.306,2.57-0.401,3.868c-0.096,1.299-0.143,2.522-0.143,3.668c0,2.457,0.137,4.694,0.397,6.738
C97.832,43.991,96.657,44.852,95.534,45.6z M138.227,56.115c-0.02,0.478-0.043,1.074-0.072,1.791
c-0.028,0.716-0.071,1.59-0.129,2.621c-0.039,0.592-0.062,1.261-0.071,2.006c-0.011,0.745-0.034,1.509-0.072,2.292
c-0.039,0.784-0.086,1.547-0.144,2.293c-0.057,0.744-0.153,1.414-0.286,2.006c-0.134,0.591-0.306,1.063-0.516,1.418
c-0.211,0.354-0.478,0.529-0.803,0.529c-0.362,0-0.668-0.133-0.916-0.4c-0.249-0.268-0.45-0.573-0.603-0.917
c-0.153-0.345-0.262-0.688-0.329-1.031s-0.101-0.592-0.101-0.745c0-0.248,0.053-0.654,0.157-1.218s0.248-1.232,0.431-2.006
c0.181-0.773,0.396-1.609,0.645-2.507c0.248-0.898,0.524-1.795,0.831-2.693c0.305-0.898,0.631-1.763,0.974-2.594
c0.344-0.83,0.697-1.561,1.061-2.191C138.264,55.132,138.245,55.581,138.227,56.115z M144.158,47.348
c0-1.126,0.032-2.258,0.101-3.396c0.066-1.136,0.181-2.229,0.344-3.281c0.162-1.049,0.373-2.034,0.63-2.951
c0.258-0.917,0.582-1.709,0.975-2.378c0.392-0.667,0.854-1.198,1.39-1.59c0.534-0.392,1.155-0.588,1.861-0.588
c0.631,0,1.123,0.178,1.477,0.53c0.353,0.354,0.602,0.779,0.745,1.275c0.143,0.497,0.2,1.027,0.172,1.59
c-0.029,0.564-0.092,1.056-0.187,1.476c-0.229,0.898-0.535,1.776-0.917,2.635c-0.383,0.86-0.874,1.691-1.476,2.494
c-0.602,0.802-1.317,1.557-2.148,2.263C146.293,46.136,145.303,46.774,144.158,47.348z M171.521,47.963
c-0.115,0.545-0.315,1.023-0.603,1.433c-0.285,0.412-0.673,0.741-1.16,0.989c-0.486,0.249-1.103,0.373-1.849,0.373
c-0.611,0-1.155-0.144-1.632-0.431c-0.479-0.286-0.899-0.602-1.262-0.945s-0.683-0.659-0.959-0.945
c-0.047-0.047-0.09-0.084-0.135-0.124l-0.042-0.886l6.781-6.756c0.095,0.308,0.205,0.674,0.329,1.104s0.238,0.889,0.344,1.376
c0.104,0.486,0.19,0.998,0.258,1.533c0.066,0.535,0.101,1.06,0.101,1.575C171.693,46.853,171.635,47.419,171.521,47.963z
M214.214,40.355c0.037-0.59,0.118-1.203,0.243-1.833c0.124-0.631,0.306-1.255,0.545-1.877c0.238-0.621,0.553-1.174,0.945-1.662
c0.391-0.487,0.878-0.882,1.461-1.188c0.583-0.305,1.284-0.459,2.106-0.459c0.458,0,0.845,0.277,1.16,0.831
c0.315,0.555,0.473,1.262,0.473,2.121c0,0.611-0.239,1.242-0.717,1.891c-0.477,0.65-1.064,1.252-1.762,1.806
c-0.697,0.554-1.452,1.009-2.264,1.36c-0.812,0.354-1.561,0.529-2.249,0.529C214.156,41.455,214.175,40.95,214.214,40.355z"/>
</g>
<g>
<path fill="#0383D0" d="M149.144,2.829h-22.005c-1.214,0-2.392,0.959-2.627,2.174l-3.179,13.415
c-0.236,1.216,0.557,2.412,1.773,2.412h2.201l2.833,4.401l5.114-4.401h11.857c1.216,0,2.392-1.209,2.629-2.425l3.179-13.288
C151.154,3.899,150.359,2.829,149.144,2.829z M133.801,13.135c0,1.714-1.702,2.69-3.504,2.69c-0.988,0-1.852-0.212-2.202-0.476
l0.588-1.626c0.338,0.15,0.901,0.375,1.614,0.375c0.826,0,1.401-0.351,1.401-0.951c0-0.625-0.525-0.938-1.501-0.938h-0.263
l0.3-1.564h0.213c0.775,0,1.602-0.25,1.602-0.889c0-0.325-0.275-0.588-0.901-0.588c-0.613,0-1.151,0.15-1.476,0.325l-0.163-1.577
c0.513-0.275,1.351-0.475,2.14-0.475c1.451,0,2.564,0.688,2.564,1.927c0,0.988-0.75,1.727-1.701,1.989l-0.013,0.025
C133.263,11.596,133.801,12.234,133.801,13.135z M135.943,15.813c-0.688,0-1.113-0.488-1.113-1.176
c0-0.738,0.563-1.414,1.326-1.414c0.701,0,1.151,0.488,1.151,1.189C137.307,15.262,136.719,15.813,135.943,15.813z M140.787,15.825
c-1.727,0-2.34-1.351-2.34-2.865c0-2.64,1.264-5.518,3.729-5.518c1.802,0,2.327,1.426,2.327,2.79
C144.503,12.747,143.364,15.825,140.787,15.825z"/>
<path fill="#0383D0" d="M141.951,9.094c-1.039,0-1.502,3.116-1.502,3.966c0,0.513,0.088,1.114,0.588,1.114
c1.026,0,1.464-3.216,1.464-4.029C142.501,9.644,142.401,9.094,141.951,9.094z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,34 @@
/*
* jGFeed 1.0 - Google Feed API abstraction plugin for jQuery
*
* Copyright (c) 2009 jQuery HowTo
*
* Licensed under the GPL license:
* http://www.gnu.org/licenses/gpl.html
*
* URL:
* http://jquery-howto.blogspot.com
*
* Author URL:
* http://me.boo.uz
*
*/
(function($){
$.extend({
jGFeed : function(url, fnk, num, key){
// Make sure url to get is defined
if(url == null) return false;
// Build Google Feed API URL
var gurl = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q="+url+"?";
if(num != null) gurl += "&num="+num;
if(key != null) gurl += "&key="+key;
// AJAX request the API
$.getJSON(gurl, function(data){
if(typeof fnk == 'function')
fnk.call(this, data.responseData.feed);
else
return false;
});
}
});
})(jQuery);

View File

@ -0,0 +1,78 @@
// Copyright (C) 2009 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
* @fileoverview
* Registers a language handler for CSS.
*
*
* To use, include prettify.js and this file in your HTML page.
* Then put your code in an HTML tag like
* <pre class="prettyprint lang-css"></pre>
*
*
* http://www.w3.org/TR/CSS21/grammar.html Section G2 defines the lexical
* grammar. This scheme does not recognize keywords containing escapes.
*
* @author mikesamuel@gmail.com
*/
PR['registerLangHandler'](
PR['createSimpleLexer'](
[
// The space production <s>
[PR['PR_PLAIN'], /^[ \t\r\n\f]+/, null, ' \t\r\n\f']
],
[
// Quoted strings. <string1> and <string2>
[PR['PR_STRING'],
/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/, null],
[PR['PR_STRING'],
/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/, null],
['lang-css-str', /^url\(([^\)\"\']*)\)/i],
[PR['PR_KEYWORD'],
/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,
null],
// A property name -- an identifier followed by a colon.
['lang-css-kw', /^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],
// A C style block comment. The <comment> production.
[PR['PR_COMMENT'], /^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],
// Escaping text spans
[PR['PR_COMMENT'], /^(?:<!--|-->)/],
// A number possibly containing a suffix.
[PR['PR_LITERAL'], /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],
// A hex color
[PR['PR_LITERAL'], /^#(?:[0-9a-f]{3}){1,2}/i],
// An identifier
[PR['PR_PLAIN'],
/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],
// A run of punctuation
[PR['PR_PUNCTUATION'], /^[^\s\w\'\"]+/]
]),
['css']);
PR['registerLangHandler'](
PR['createSimpleLexer']([],
[
[PR['PR_KEYWORD'],
/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]
]),
['css-kw']);
PR['registerLangHandler'](
PR['createSimpleLexer']([],
[
[PR['PR_STRING'], /^[^\)\"\']+/]
]),
['css-str']);

View File

@ -0,0 +1,28 @@
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c<
f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&&
(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r=
{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length,
t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",
m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m=
a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue=
j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),
["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",
/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),
["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b=
!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,
250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",
PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();

View File

@ -0,0 +1,119 @@
$(function() {
$('.tooltip').not('#welcome .tooltip').tooltipster({
offsetY: 2,
});
$('#welcome .tooltip').tooltipster({
offsetY: 2,
theme: 'tooltipster-white'
});
$('#demo-default').tooltipster({
offsetY: 2
});
$('#demo-html').tooltipster({
content: $('<img src="doc/images/spiderman.png" width="50" height="50" /><p style="text-align:left;"><strong>Soufflé chocolate cake powder.</strong> Applicake lollipop oat cake gingerbread.</p>'),
fixedWidth: 300,
position: 'right'
});
$('#demo-theme').tooltipster({
animation: 'grow',
theme: 'tooltipster-pink'
});
$('#demo-callback').tooltipster({
content: 'Loading...',
updateAnimation: false,
functionBefore: function(origin, continueTooltip) {
continueTooltip();
if (origin.data('ajax') !== 'cached') {
$.jGFeed('http://ws.audioscrobbler.com/2.0/user/ce3ge/recenttracks.rss?',
function(feeds){
var content = '';
if(!feeds){
content = 'Woops - there was an error retrieving my last.fm RSS feed';
origin.tooltipster('content', content);
}
else {
content = $('<span>I last listened to: <strong>' + feeds.entries[0].title + '</strong></span>');
origin
.tooltipster('content', content)
.data('ajax', 'cached');
}
}, 10);
origin.data('ajax', 'cached');
}
},
functionAfter: function(origin) {
alert('The tooltip has closed!');
}
});
$('#demo-events').tooltipster({
trigger: 'click'
});
$(window).keypress(function() {
$('#demo-events').tooltipster('hide');
});
$('#demo-interact').tooltipster({
contentAsHTML: true,
interactive: true
});
$('#demo-touch').tooltipster({
touchDevices: false
});
$('#demo-icon').tooltipster({
iconDesktop: true,
iconTouch: true
});
$('#demo-multiple').tooltipster({
animation: 'swing',
content: 'North',
multiple: true,
position: 'top'
});
$('#demo-multiple').tooltipster({
content: 'East',
multiple: true,
position: 'right',
theme: 'tooltipster-punk'
});
$('#demo-multiple').tooltipster({
animation: 'grow',
content: 'South',
delay: 200,
multiple: true,
position: 'bottom',
theme: 'tooltipster-light'
});
$('#demo-multiple').tooltipster({
animation: 'fall',
content: 'West',
multiple: true,
position: 'left',
theme: 'tooltipster-shadow'
});
$('.tooltipster-light-preview').tooltipster({
theme: 'tooltipster-light'
});
$('.tooltipster-punk-preview').tooltipster({
theme: 'tooltipster-punk'
});
$('.tooltipster-noir-preview').tooltipster({
theme: 'tooltipster-noir'
});
$('.tooltipster-shadow-preview').tooltipster({
theme: 'tooltipster-shadow'
});
$('header select').change(function() {
var goTo = $(this).val();
var section = $('#'+goTo);
var offset = section.offset().top;
$('html, body').scrollTop(offset);
});
prettyPrint();
});

View File

@ -0,0 +1,664 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tooltipster - The jQuery Tooltip Plugin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Tooltipster is a powerful, flexible jQuery plugin enabling you to easily create clean, HTML5 validated tooltips." />
<meta property="og:title" content="Tooltipster" />
<meta property="og:type" content="website" />
<meta property="og:url" content="index.html" />
<meta property="og:image" content="images/social.jpg" />
<meta property="og:site_name" content="Tooltipster - The jQuery Tooltip Plugin" />
<meta property="og:description" content="Tooltipster is a powerful, flexible jQuery plugin enabling you to easily create clean, HTML5 validated tooltips." />
<html itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="Tooltipster - The jQuery Tooltip Plugin">
<meta itemprop="description" content="Tooltipster is a powerful, flexible jQuery plugin enabling you to easily create clean, HTML5 validated tooltips.">
<meta itemprop="image" content="images/social.jpg">
<link rel="icon" type="image/png" href="images/favicon.png" />
<link rel="image_src" href="images/social.jpg" / >
<link rel="stylesheet" type="text/css" href="doc/css/reset.css" />
<link rel="stylesheet" type="text/css" href="doc/css/prettify.css" />
<link rel="stylesheet" type="text/css" href="doc/css/style.css" />
<link rel="stylesheet" type="text/css" href="css/tooltipster.css" />
<link rel="stylesheet" type="text/css" href="css/themes/tooltipster-light.css" />
<link rel="stylesheet" type="text/css" href="css/themes/tooltipster-noir.css" />
<link rel="stylesheet" type="text/css" href="css/themes/tooltipster-punk.css" />
<link rel="stylesheet" type="text/css" href="css/themes/tooltipster-shadow.css" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript" src="doc/js/jquery.jgfeed.js"></script>
<script type="text/javascript" src="doc/js/prettify.js"></script>
<script type="text/javascript" src="doc/js/lang-css.js"></script>
<script type="text/javascript" src="doc/js/scripts.js"></script>
<script type="text/javascript" src="js/jquery.tooltipster.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="background">
<img src="doc/images/large-background.jpg" />
</div>
<div id="wrapper">
<header>
<div id="social">
<div id="github">
<iframe src="http://ghbtns.com/github-btn.html?user=iamceege&repo=tooltipster&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
</div>
<div id="tweet">
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Tooltipster - A powerful &amp; degradable jQuery tooltip plugin" data-via="iamceege" data-related="iamceege">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div id="gplus">
<g:plusone href="http://calebjacob.com/tooltipster"></g:plusone>
</div>
</div>
<nav>
<ul>
<li><a href="https://github.com/iamceege/tooltipster/archive/master.zip">Download</a></li>
<li><a href="#demos">Demos</a></li>
<li><a href="#getting-started">Get Started</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#advanced">Advanced</a></li>
<li><a href="#themes">Themes</a></li>
<li><a href="#talk">Talk</a></li>
</ul>
</nav>
<select>
<option selected="selected" disabled="disabled">Menu...</option>
<option value="demos">Demos</option>
<option value="getting-started">Get Started</option>
<option value="options">Options</option>
<option value="themes">Themes</option>
<option value="talk">Talk</option>
</select>
</header>
<section id="welcome">
<img src="doc/images/tooltipster.svg" alt="Tooltipster" id="tooltipster" />
<h1>A powerful, flexible jQuery plugin enabling you to easily create semantic, modern tooltips enhanced with the power of CSS.</h1>
<ul id="browser-support">
<li>
<img src="doc/images/browser-chrome.png" alt="Chrome" class="tooltip" title="Chrome Support" />
</li>
<li>
<img src="doc/images/browser-safari.png" alt="Safari" class="tooltip" title="Safari Support" />
</li>
<li>
<img src="doc/images/browser-opera.png" alt="Opera" class="tooltip" title="Opera Support" />
</li>
<li>
<img src="doc/images/browser-firefox.png" alt="FireFox" class="tooltip" title="FireFox Support" />
</li>
<li>
<img src="doc/images/browser-ie.png" alt="Internet Explorer" class="tooltip" title="IE10, IE9, &amp; IE8 Support + Graceful Degradation" />
</li>
</ul>
<div id="download">
<a href="https://github.com/iamceege/tooltipster/archive/master.zip" class="button alt">Download</a> <span style="padding-right: 0.5em;">&amp;</span> <a href="#demos" class="white">get started &rsaquo;</a>
</div>
</section>
<section id="demos">
<h2>Demos</h2>
<ul>
<li>
<span id="demo-default" title="Hi! This is a tooltip.">Hover</span> Default settings
</li>
<li>
<span id="demo-html">Hover</span> Fixed width, position, &amp; HTML
</li>
<li>
<span id="demo-events" title="Press any key on your keyboard or click anywhere in the page to close this">Click</span> Custom show / hide triggers
</li>
<li>
<span id="demo-touch" title="I would have never been born on a touch device :'(">Hover</span> Disable touch devices
</li>
<li>
<span id="demo-theme" title="Build custom themes and CSS powered animations!">Hover</span> Custom themes &amp; animations
</li>
<li>
<span id="demo-callback" title="This will be populated by AJAX.">Hover</span> Custom callbacks (AJAX <3)
</li>
<li>
<span id="demo-interact" title="Try clicking &lt;a href='http://google.com/' target='_blank'&gt;this link&lt;/a&gt;">Hover</span> Interaction with tooltips
</li>
<li>
<span id="demo-icon" title="Use separate icons to launch your tooltips on either desktops or touch devices - or both!"></span> Attach tooltips to icons
</li>
<li>
<span id="demo-multiple">Hover</span> Multiple tooltips on a single element
</li>
<li>...&amp; more!</li>
</ul>
</section>
<section id="getting-started">
<h2>Getting Started</h2>
<h3>1. Load jQuery and include Tooltipster's plugin files</h3>
<p>After you <a href="https://github.com/iamceege/tooltipster/archive/master.zip">download Tooltipster</a>, move tooltipster.css and jquery.tooltipster.min.js to your root's CSS and JavaScript directories. Next, load jQuery and include Tooltipster's CSS and JavaScript files inside of your tags:</p>
<pre class="prettyprint">
&lt;head&#62;
...
&lt;link rel="stylesheet" type="text/css" href="css/tooltipster.css" /&#62;
&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.7.0.min.js"&#62;&lt;/script&#62;
&lt;script type="text/javascript" src="js/jquery.tooltipster.min.js"&#62;&lt;/script&#62;
...
&lt;/head&#62;
</pre>
<h3>2. Set up your HTML</h3>
<p>In order for Tooltipster to work, we first need to add the <strong>.tooltip</strong> class (or whatever class / means of selection you'd like to use) to whatever element we wish to have a tooltip. Next, we'll set the <strong>title attribute</strong> to whatever we'd like our tooltip to say. Here are a few examples:</p>
<h4>Adding a tooltip to an image:</h4>
<pre class="prettyprint">
&lt;img src="my-image.png" class="tooltip" title="This is my image's tooltip message!" /&#62;</pre>
<h4>Adding a tooltip to a link that already has a class:</h4>
<pre class="prettyprint">
&lt;a href="http://calebjacob.com" class="ketchup tooltip" title="This is my link's tooltip message!"&#62;Link&lt;/a&#62;</pre>
<h4>Adding a tooltip to a div:</h4>
<pre class="prettyprint">
&lt;div class="tooltip" title="This is my div's tooltip message!"&#62;
This div has a tooltip when you hover over it!
&lt;/div&#62;</pre>
<h3>3. Activate Tooltipster</h3>
<p>The last thing we have to do is activate the plugin. To do this, add the following script right before your closing &lt;/head&#62; tag (using whatever selector you'd like - in this case we're using the <strong>.tooltip</strong> class):</p>
<pre class="prettyprint">
&lt;head&#62;
...
&lt;script&#62;
$(document).ready(function() {
$('.tooltip').tooltipster();
});
&lt;/script&#62;
&lt;/head&#62;</pre>
<h3><a name="further">4. Taking It a Step Further</a></h3>
<h4>Using HTML tags inside your tooltips</h4>
<p>Tooltipster allows you to use any HTML markup you can think of inside your tooltips. This means you can insert things like images and text formatting tags. To achieve this, the recommended method is a little different : provide your content as a jQuery object in the script rather than in the title attribute :</p>
<pre class="prettyprint">
&lt;head&#62;
...
&lt;script&#62;
$(document).ready(function() {
$('#my-tooltip').tooltipster({
content: $('&lt;span&gt;&lt;img src="my-image.png" /&gt; &lt;strong&gt;This text is in bold case !&lt;/strong&gt;&lt;/span&gt;')
});
});
&lt;/script&#62;
&lt;/head&#62;
&lt;body&#62;
&lt;div id="my-tooltip"&#62;
This div has a tooltip with HTML when you hover over it!
&lt;/div&#62;
&lt;/body&#62;</pre>
<p>Another (less recommended) way of achieving this is to put encoded HTML markup directly in your title attribute and set the 'contentAsHTML' option to 'true'. In all cases, make sure you have tight control over the content you wish to display in the tooltip, as unwanted &lt;script&gt; or &lt;iframe&gt; tags for example would be a serious security issue for your website.</p>
<pre class="prettyprint">
&lt;head&#62;
...
&lt;script&#62;
$(document).ready(function() {
$('.tooltip').tooltipster({
contentAsHTML: true
});
});
&lt;/script&#62;
&lt;/head&#62;
&lt;body&#62;
&lt;div class="tooltip" title="&amp;lt;img src=&amp;quot;my-image.png&amp;quot; /&amp;gt; &amp;lt;strong&amp;gt; This text is in bold case !&amp;lt;/strong&amp;gt;"&gt;
This div has a tooltip with HTML when you hover over it!
&lt;/div&#62;
&lt;/body&#62;</pre>
<h4>Customizing Your Tooltipster's Style</h4>
<p>The style of your Tooltipsters can be easily changed by editing/overriding the default Tooltipster theme, located in the <strong>css/tooltipster.css</strong> file.</p>
<p>Tooltipster is also packaged with 4 alternative themes to choose from. They are demonstrated at the bottom of this page. To use a theme, just include its css file (located in the css/themes folder) in your page and specify its name in Tooltipster's settings :</p>
<pre class="prettyprint">
$('.tooltip').tooltipster({
theme: 'tooltipster-noir'
});</pre>
<p>And of course, you also have the option to create a brand new theme to suit your needs. To do this, start with the example below and add your flair. When you are done, include and specify your theme just like you would for one of Tooltipster's existing themes.</p>
<pre class="prettyprint lang-css">
/* This is how you would create a theme called "my-custom-theme": */
.my-custom-theme {
border-radius: 5px;
border: 2px solid #000;
background: #4c4c4c;
color: #fff;
}
/* Use this next selector to style things like font-size and line-height: */
.my-custom-theme .tooltipster-content {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 16px;
padding: 8px 10px;
}</pre>
<h4>Customizing Tooltipster's Functionality</h4>
<p>Tooltipster's options gives you a wide range of variables to tweak your tooltip to your heart's content. To learn more about all of the options, <a href="#options">read the Options section</a>. Here's just a few of the things you can play with:</p>
<pre class="prettyprint">
$('.tooltip').tooltipster({
animation: 'fade',
delay: 200,
theme: 'tooltipster-default',
touchDevices: false,
trigger: 'hover'
});</pre>
</section>
<section id="options">
<h2>Options</h2>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><h4>animation</h4></td>
<td>fade, grow, swing, slide, fall</td>
<td>Determines how the tooltip will animate in and out. Feel free to modify or create custom transitions in the tooltipster.css file. In IE9 and 8, all animations default to a JavaScript generated, fade animation. <strong>Default: 'fade'</strong></td>
</tr>
<tr>
<td><h4>arrow</h4></td>
<td>boolean</td>
<td>Adds the "speech bubble arrow" to the tooltip. <strong>Default: true</strong></td>
</tr>
<tr>
<td><h4>arrowColor</h4></td>
<td>hex code / rgb</td>
<td>Select a specific color for the "speech bubble arrow". <strong>Default: will inherit the tooltip's background color</strong></td>
</tr>
<tr>
<td><h4>autoClose</h4></td>
<td>boolean</td>
<td>If autoClose is set to false, the tooltip will never close unless you call the 'close' method yourself. <strong>Default: true</strong></td>
</tr>
<tr>
<td><h4>content</h4></td>
<td>string, jQuery object</td>
<td>If set, this will override the content of the tooltip. <strong>Default: null</strong></td>
</tr>
<tr>
<td><h4>contentAsHTML</h4></td>
<td>boolean</td>
<td>If the content of the tooltip is provided as a string, it is displayed as plain text by default. If this content should actually be interpreted as HTML, set this option to true. <strong>Default: false</strong></td>
</tr>
<tr>
<td><h4>contentCloning</h4></td>
<td>boolean</td>
<td>If you provide a jQuery object to the 'content' option, this sets if it is a clone of this object that should actually be used. <strong>Default: true</strong></td>
</tr>
<tr>
<td><h4>delay</h4></td>
<td>integer</td>
<td>Delay how long it takes (in milliseconds) for the tooltip to start animating in. <strong>Default: 200</strong></td>
</tr>
<tr>
<td><h4>minWidth</h4></td>
<td>integer</td>
<td>Set a minimum width for the tooltip. <strong>Default: 0 (auto width)</strong></td>
</tr>
<tr>
<td><h4>maxWidth</h4></td>
<td>integer</td>
<td>Set a maximum width for the tooltip. <strong>Default: null (no max width)</strong></td>
</tr>
<tr>
<td><h4>functionInit</h4></td>
<td>function</td>
<td>Create a custom function to be fired only once at instantiation. If the function returns a value, this value will become the content of the tooltip. See the <a href="#advanced">advanced section</a> to learn more. <strong>Default: function(origin, content) {}</strong></td>
</tr>
<tr>
<td><h4>functionBefore</h4></td>
<td>function</td>
<td>Create a custom function to be fired before the tooltip opens. This function may prevent or hold off the opening. See the <a href="#advanced">advanced section</a> to learn more. <strong>Default: function(origin, continueTooltip) { continueTooltip(); }</strong></td>
</tr>
<tr>
<td><h4>functionReady</h4></td>
<td>function</td>
<td>Create a custom function to be fired when the tooltip and its contents have been added to the DOM. <strong>Default: function(origin, tooltip) {}</strong></td>
</tr>
<tr>
<td><h4>functionAfter</h4></td>
<td>function</td>
<td>Create a custom function to be fired once the tooltip has been closed and removed from the DOM. <strong>Default: function(origin) {}</strong></td>
</tr>
<tr>
<td><h4>icon</h4></td>
<td>string, jQuery object</td>
<td>If using the iconDesktop or iconTouch options, this sets the content for your icon. <strong>Default: '(?)'</strong></td>
</tr>
<tr>
<td><h4>iconCloning</h4></td>
<td>boolean</td>
<td>If you provide a jQuery object to the 'icon' option, this sets if it is a clone of this object that should actually be used. <strong>Default: true</strong></td>
</tr>
<tr>
<td><h4>iconDesktop</h4></td>
<td>boolean</td>
<td>Generate an icon next to your content that is responsible for activating the tooltip on non-touch devices. <strong>Default: false</strong></td>
</tr>
<tr>
<td><h4>iconTheme</h4></td>
<td>CSS class</td>
<td>If using the iconDesktop or iconTouch options, this sets the class on the icon (used to style the icon). <strong>Default: 'tooltipster-icon'</strong></td>
</tr>
<tr>
<td><h4>iconTouch</h4></td>
<td>boolean</td>
<td>Generate an icon next to your content that is responsible for activating the tooltip on touch devices (tablets, phones, etc). <strong>Default: false</strong></td>
</tr>
<tr>
<td><h4>interactive</h4></td>
<td>boolean</td>
<td>Give users the possibility to interact with the tooltip. Unless autoClose is set to false, the tooltip will still close if the user moves away from or clicks out of the tooltip. <strong>Default: false</strong></td>
</tr>
<tr>
<td><h4>interactiveTolerance</h4></td>
<td>integer</td>
<td>If the tooltip is interactive and activated by a hover event, set the amount of time (milliseconds) allowed for a user to hover off of the tooltip activator (origin) on to the tooltip itself - keeping the tooltip from closing. <strong>Default: 350</strong></td>
</tr>
<tr>
<td><h4>multiple</h4></td>
<td>boolean</td>
<td>Allows you to put multiple tooltips on a single element. Read further instructions down this page. <strong>Default: false</strong></td>
</tr>
<tr>
<td><h4>offsetX</h4></td>
<td>integer</td>
<td>Offsets the tooltip (in pixels) farther left/right from the origin. <strong>Default: 0</strong></td>
</tr>
<tr>
<td><h4>offsetY</h4></td>
<td>integer</td>
<td>Offsets the tooltip (in pixels) farther up/down from the origin. <strong>Default: 0</strong></td>
</tr>
<tr>
<td><h4>onlyOne</h4></td>
<td>boolean</td>
<td>If true, only one tooltip will be allowed to be active at a time. Non-autoclosing tooltips will not be closed though. <strong>Default: false</strong></td>
</tr>
<tr>
<td><h4>position</h4></td>
<td>right, left, top, top-right, top-left, bottom, bottom-right, bottom-left</td>
<td>Set the position of the tooltip. <strong>Default: 'top'</strong></td>
</tr>
<tr>
<td><h4>positionTracker</h4></td>
<td>boolean</td>
<td>Will reposition the tooltip if the origin moves. As this option may have an impact on performance, we suggest you enable it only if you need to. <strong>Default: false</strong></td>
</tr>
<tr>
<td><h4>speed</h4></td>
<td>integer</td>
<td>Set the speed of the animation. <strong>Default: 350</strong></td>
</tr>
<tr>
<td><h4>timer</h4></td>
<td>integer</td>
<td>How long the tooltip should be allowed to live before closing. <strong>Default: 0 (disabled)</strong></td>
</tr>
<tr>
<td><h4>theme</h4></td>
<td>CSS class</td>
<td>Set the theme used for your tooltip. <strong>Default: 'tooltipster-default'</strong></td>
</tr>
<tr>
<td><h4>touchDevices</h4></td>
<td>boolean</td>
<td>If set to false, tooltips will not show on pure-touch devices, unless you open them yourself with the 'show' method. Touch gestures on devices which also have a mouse will still open the tooltips though. <strong>Default: true</strong></td>
</tr>
<tr>
<td><h4>trigger</h4></td>
<td>hover, click, custom</td>
<td>Set how tooltips should be activated and closed. See the <a href="#advanced">advanced section</a> to learn how to build custom triggers. <strong>Default: 'hover'</strong></td>
</tr>
<tr>
<td><h4>updateAnimation</h4></td>
<td>boolean</td>
<td>If a tooltip is open while its content is updated, play a subtle animation when the content changes. <strong>Default: true</strong></td>
</tr>
</table>
</section>
<section id="advanced">
<h2>Advanced</h2>
<a name="api"></a>
<h3>The awesomesauce Tooltipster API</h3>
<p>The Tooltipster API was created to be as flexible and easy to use as possible (thanks to <a href="https://github.com/glebtv">glebtv</a> for the inspiration). The API allows you to create custom triggers, update tooltip content on the fly (whether the tooltip is currently open or not), destroy Tooltipster functionality if needed, and reposition tooltips for unique use cases.</p>
<p>Here is a quick look at all of the API methods:</p>
<pre class="prettyprint">
// set default options for all future tooltip instantiations
$.fn.tooltipster('setDefaults', {
position: 'bottom'
});
// show a tooltip (the 'callback' argument is optional)
$(...).tooltipster('show', callback);
// hide a tooltip (the 'callback' argument is optional)
$(...).tooltipster('hide', callback);
// temporarily disable a tooltip from being able to open
$(...).tooltipster('disable');
// if a tooltip was disabled from opening, reenable its previous functionality
$(...).tooltipster('enable');
// hide and destroy tooltip functionality
$(...).tooltipster('destroy');
// return a tooltip's current content (if selector contains multiple origins, only the value of the first will be returned)
$(...).tooltipster('content');
// update tooltip content
$(...).tooltipster('content', myNewContent);
// reposition and resize the tooltip
$(...).tooltipster('reposition');
// return the HTML root element of the tooltip
$(...).tooltipster('elementTooltip');
// return the HTML root element of the icon if there is one, 'undefined' otherwise
$(...).tooltipster('elementIcon');</pre>
<a name="ajax"></a>
<h3>Using AJAX to generate your tooltip content</h3>
<p>Tooltipster gives you the ability to fire a custom synchronous or asynchronous function everytime before the tooltip launches (<a href="#functionBeforeExample">functionBefore</a>) or just once upon instantiation (<a href="#functionInitExample">functionInit</a>). One great use for this is to grab dynamic content for your tooltips via AJAX.</p>
<p id="functionBeforeExample">Here is an example of using functionBefore() asynchronously to replace a loading notification with our AJAX call. Once the content has been retrieved and updated, we'll take advantage of setting $.data() to keep our content cached for the next time the tooltip is opened:</p>
<pre class="prettyprint">
$('.tooltip').tooltipster({
content: 'Loading...',
functionBefore: function(origin, continueTooltip) {
// we'll make this function asynchronous and allow the tooltip to go ahead and show the loading notification while fetching our data
continueTooltip();
// next, we want to check if our data has already been cached
if (origin.data('ajax') !== 'cached') {
$.ajax({
type: 'POST',
url: 'example.php',
success: function(data) {
// update our tooltip content with our returned data and cache it
origin.tooltipster('content', data).data('ajax', 'cached');
}
});
}
}
});</pre>
<p id="functionInitExample">However, maybe you just need to make one call and only need it to fire once instead of everytime the tooltip opens. This is where you could use functionInit(). This function will fire only once - right at the beginning of the instantiation process. You'll have the ability to do things like check the current content and set new content. Since the fancy API methods for returning and setting the value aren't instantiated yet, the way we go about this is a little different than functionBefore():
<pre class="prettyprint">
$('.tooltip').tooltipster({
functionInit: function(origin, content) {
if (content === 'This is bad content') {
// when the request has finished loading, we will change the tooltip's content
$.ajax({
type: 'POST',
url: 'example.php',
success: function(data) {
origin.tooltipster('content', 'New content has been loaded : ' + data);
}
});
// this returned string will overwrite the content of the tooltip for the time being
return 'Wait while we load new content...';
}
else {
// return nothing : the initialization continues normally with its content unchanged.
}
}
});</pre>
<a name="apishow"></a>
<h3>Manually show and hide a tooltip</h3>
<p>By default and according to the 'trigger' option, Tooltipster automatically shows tooltips upon users' mouse clicks or mouse hovering (or their touch-gesture equivalents). In addition to this, you may also manually open or close a tooltip at anytime with a simple javascript command.</p>
<p>To achieve this, Tooltipster has the 'show' and 'hide' methods. Both of them may receive an optional 'callback' parameter, which represents a function you'd like to call when the tooltip is done animating.</p>
<p>Here's an example of how you could launch a specific tooltip on page load and close it when any key on your keyboard is pressed. This will still preserve the default hover trigger.</p>
<pre class="prettyprint">
&lt;span class="tooltip" id="example" title="My tooltip content"&#62;Example&lt;/span&#62;
</pre>
<pre class="prettyprint">
$(document).ready(function() {
// first on page load, initiate the Tooltipster plugin
$('.tooltip').tooltipster();
// then immediately show the tooltip
$('#example').tooltipster('show');
// as soon as a key is pressed on the keyboard, hide the tooltip.
$(window).keypress(function() {
$('#example').tooltipster('hide');
});
});
</pre>
<p>You may also provide a function as the callback parameter of the show/hide methods. The callback functions are called in the context of the tooltipstered element. If the tooltip is already in the state you are asking for (open/closed), the callback is executed immediately. Please note that if the show/hide action is somehow cancelled before it has completed its animation, the callback function will never be called.</p>
<pre class="prettyprint">
$(document).ready(function() {
$('.tooltip').tooltipster();
$('#example').tooltipster('show', function() {
alert('The tooltip is now fully open. The content is: ' + this.tooltipster('content'));
});
$(window).keypress(function() {
$('#example').tooltipster('hide', function() {
alert('The tooltip is now fully closed');
});
});
});
</pre>
<a name="apicontent"></a>
<h3>Updating a tooltip's content</h3>
<p>It's easy as pie to update a tooltip's content - whether it's open or closed. Depending on your selector, you can update multiple tooltips at once or just one:</p>
<pre class="prettyprint">
$('#my-special-element').tooltipster('content', 'My new content');</pre>
<p>By default, Tooltipster will play a subtle animation when the content changes. To tweak the animation, check out the '.tooltipster-content-changing' class in your tooltipster.css file. It's important to note that only CSS transforms will be animated. To disable this animation, set updateAnimation to false.</p>
<a name="multiple"></a>
<h3>Using several tooltips on a single element</h3>
<p>Several independant tooltips can be set on a single element, each one having its own triggers and options. Just set the 'multiple' option to true when you initialize your tooltip. This will only change two things that you might want to be aware of.</p>
<p>Firstly, the instantiation call will now return an array of Tooltipster objects generated by the call, instead of the tooltipped jQuery-wrapped elements.</p>
<p>Secondly, you will have to use the Tooltipster object of a tooltip to make any API method calls on it. All methods documented on this page remain available, only the way to call them changes.</p>
<pre class="prettyprint">
// create a first tooltip as usual. The multiple option is actually optional for the first tooltip
$('#my-element').tooltipster({
content: 'My first tooltip',
position: 'top'
});
// instantiate a second tooltip and keep the returned Tooltipster objects array for later use of the API
var tooltipsterObjects = $('#my-element').tooltipster({
// don't forget to provide content here as the 1st tooltip will have deleted the original title attribute of the element
content: 'My second tooltip',
multiple: true,
position: 'bottom'
});
// since the jQuery selector matches only one element, the array will contain only one Tooltipster object.
// Otherwise the array would contain one object for each matched element, in the same order as them
var tooltip2 = tooltipsterObjects[0];
// use this Tooltipster object to make any API method call on the tooltip
tooltip2.content('New content for my second tooltip').show();
// all documented methods can be called that way
var element = tooltip2.elementTooltip();
// calling the API methods in the usual way only affects the first tooltip that was created on the element
$('#my-element').tooltipster('content', 'New content for my first tooltip')
</pre>
<pre class="prettyprint">
// You may use the 'multiple' option on the first tooltip as well, it will return an array of objects too
var tooltipsterObjects = $('#my-element').tooltipster({
content: 'My first tooltip',
multiple: true
});
// this is also a way to call API methods on the first tooltip
var tooltip1 = tooltipsterObjects[0];
tooltip1.content('New content for my first tooltip').show();</pre>
<p>Note : if you have multiple tooltips and destroy them, only the last destroyed tooltip will transfer its content back to the title attribute of the tooltipped element.</p>
<h3>Community submitted use cases</h3>
<p><a href="http://stackoverflow.com/questions/14741688/how-to-display-messages-from-jquery-validate-plugin-inside-of-tooltipster-toolti">Using Tooltipster alongside jQuery Validate</a> by <a href="https://github.com/sparky672">sparky672</a></p>
<p>Did you do something awesome with Tooltipster? <a href="#talk">Tell me</a> and I'll post it up here!</p>
</section>
<section id="themes">
<h2>Themes</h2>
<p>Tired of the same old? Four other rocking themes are available for your tooltips, and you can always create yours ! Share them with us on GitHub !</p>
<div class="themes">
<span class="tooltipster-default-preview tooltip" title="The default theme" target="_blank">Default</span>
<span class="tooltipster-light-preview" title="Light and frisky!" target="_blank">Light</span>
<span class="tooltipster-punk-preview" title="I will not conform to your old fart ways!" target="_blank">Punk</span>
<span class="tooltipster-noir-preview" title="Hipsterific!" target="_blank">Noir</span>
<span class="tooltipster-shadow-preview" title="Check out my shadow" target="_blank">Shadow</span>
</div>
</section>
<section id="talk">
<h2>Talk</h2>
<h3>Share thoughts, questions, &amp; bugs!</h3>
<p>Head on over to Tooltipster's issue tracker on GitHub: <a href="https://github.com/iamceege/tooltipster/issues">https://github.com/iamceege/tooltipster/issues</a></p>
<p>Before opening a new issue, please be sure to search through the backlog to see if your question or bug has been / is being resolved. Thank you! :)</p>
</section>
<footer>
Developed and maintained by <a href="https://plus.google.com/116532683962309427991?rel=author" class="white">Caleb Jacob</a> and <a href="https://github.com/louisameline" class="white">Louis Ameline</a> under the <a href="http://opensource.org/licenses/MIT" class="white">MIT license</a>
</footer>
</div>
<div id="fb-root"></div>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = '//apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,36 @@
{
"name": "tooltipster",
"title": "Tooltipster",
"description": "A lightweight, flexible jQuery plugin enabling you to easily create semantic, modern tooltips enhanced with the power of CSS.",
"keywords": [
"tooltip"
],
"version": "3.2.4",
"author": {
"name": "Caleb Jacob",
"url": "http://calebjacob.com/"
},
"maintainers": [
{
"name": "Caleb Jacob",
"email": "hello@calebjacob.com",
"url": "http://calebjacob.com/"
},
{
"name": "Louis Ameline",
"email": "evangun2001@yahoo.fr",
"url": "https://github.com/louisameline"
}
],
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"homepage": "https://github.com/iamceege/tooltipster",
"docs": "http://iamceege.github.io/tooltipster",
"dependencies": {
"jquery": ">=1.7"
}
}