Commit 75a86b92 authored by PkSM3's avatar PkSM3

second commit

parent dabc0af9
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* @preserve
* Project: Bootstrap Hover Dropdown
* Author: Cameron Spear
* Version: v2.0.10
* Contributors: Mattia Larentis
* Dependencies: Bootstrap's Dropdown plugin, jQuery
* Description: A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience.
* License: MIT
* Homepage: http://cameronspear.com/blog/bootstrap-dropdown-on-hover-plugin/
*/
!function($,n,e){var o=$();$.fn.dropdownHover=function(e){return"ontouchstart"in document?this:(o=o.add(this.parent()),this.each(function(){function t(e){o.find(":focus").blur(),h.instantlyCloseOthers===!0&&o.removeClass("open"),n.clearTimeout(c),i.addClass("open"),r.trigger(a)}var r=$(this),i=r.parent(),d={delay:500,instantlyCloseOthers:!0},s={delay:$(this).data("delay"),instantlyCloseOthers:$(this).data("close-others")},a="show.bs.dropdown",u="hide.bs.dropdown",h=$.extend(!0,{},d,e,s),c;i.hover(function(n){return i.hasClass("open")||r.is(n.target)?void t(n):!0},function(){c=n.setTimeout(function(){i.removeClass("open"),r.trigger(u)},h.delay)}),r.hover(function(n){return i.hasClass("open")||i.is(n.target)?void t(n):!0}),i.find(".dropdown-submenu").each(function(){var e=$(this),o;e.hover(function(){n.clearTimeout(o),e.children(".dropdown-menu").show(),e.siblings().children(".dropdown-menu").hide()},function(){var t=e.children(".dropdown-menu");o=n.setTimeout(function(){t.hide()},h.delay)})})}))},$(document).ready(function(){$('[data-hover="dropdown"]').dropdownHover()})}(jQuery,this);
\ No newline at end of file
/* =========================================================
* bootstrap-modal.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#modals
* =========================================================
* Copyright 2012 Twitter, 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.
* ========================================================= */
!function( $ ){
"use strict"
/* MODAL CLASS DEFINITION
* ====================== */
var Modal = function ( content, options ) {
this.options = options
this.$element = $(content)
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
}
Modal.prototype = {
constructor: Modal
, toggle: function () {
return this[!this.isShown ? 'show' : 'hide']()
}
, show: function () {
var that = this
if (this.isShown) return
$('body').addClass('modal-open')
this.isShown = true
this.$element.trigger('show')
escape.call(this)
backdrop.call(this, function () {
var transition = $.support.transition && that.$element.hasClass('fade')
!that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position
that.$element
.show()
if (transition) {
that.$element[0].offsetWidth // force reflow
}
that.$element.addClass('in')
transition ?
that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
that.$element.trigger('shown')
})
}
, hide: function ( e ) {
e && e.preventDefault()
if (!this.isShown) return
var that = this
this.isShown = false
$('body').removeClass('modal-open')
escape.call(this)
this.$element
.trigger('hide')
.removeClass('in')
$.support.transition && this.$element.hasClass('fade') ?
hideWithTransition.call(this) :
hideModal.call(this)
}
}
/* MODAL PRIVATE METHODS
* ===================== */
function hideWithTransition() {
var that = this
, timeout = setTimeout(function () {
that.$element.off($.support.transition.end)
hideModal.call(that)
}, 500)
this.$element.one($.support.transition.end, function () {
clearTimeout(timeout)
hideModal.call(that)
})
}
function hideModal( that ) {
this.$element
.hide()
.trigger('hidden')
backdrop.call(this)
}
function backdrop( callback ) {
var that = this
, animate = this.$element.hasClass('fade') ? 'fade' : ''
if (this.isShown && this.options.backdrop) {
var doAnimate = $.support.transition && animate
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
.appendTo(document.body)
if (this.options.backdrop != 'static') {
this.$backdrop.click($.proxy(this.hide, this))
}
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
this.$backdrop.addClass('in')
doAnimate ?
this.$backdrop.one($.support.transition.end, callback) :
callback()
} else if (!this.isShown && this.$backdrop) {
this.$backdrop.removeClass('in')
$.support.transition && this.$element.hasClass('fade')?
this.$backdrop.one($.support.transition.end, $.proxy(removeBackdrop, this)) :
removeBackdrop.call(this)
} else if (callback) {
callback()
}
}
function removeBackdrop() {
this.$backdrop.remove()
this.$backdrop = null
}
function escape() {
var that = this
if (this.isShown && this.options.keyboard) {
$(document).on('keyup.dismiss.modal', function ( e ) {
e.which == 27 && that.hide()
})
} else if (!this.isShown) {
$(document).off('keyup.dismiss.modal')
}
}
/* MODAL PLUGIN DEFINITION
* ======================= */
$.fn.modal = function ( option ) {
return this.each(function () {
var $this = $(this)
, data = $this.data('modal')
, options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('modal', (data = new Modal(this, options)))
if (typeof option == 'string') data[option]()
else if (options.show) data.show()
})
}
$.fn.modal.defaults = {
backdrop: true
, keyboard: true
, show: true
}
$.fn.modal.Constructor = Modal
/* MODAL DATA-API
* ============== */
$(function () {
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
var $this = $(this), href
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
, option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
e.preventDefault()
$target.modal(option)
})
})
}( window.jQuery );
\ No newline at end of file
This diff is collapsed.
/* ===================================================
* bootstrap-transition.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, 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.
* ========================================================== */
!function( $ ) {
$(function () {
"use strict"
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
* ======================================================= */
$.support.transition = (function () {
var thisBody = document.body || document.documentElement
, thisStyle = thisBody.style
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
return support && {
end: (function () {
var transitionEnd = "TransitionEnd"
// if ( $.browser.webkit ) {
// transitionEnd = "webkitTransitionEnd"
// } else if ( $.browser.mozilla ) {
// transitionEnd = "transitionend"
// } else if ( $.browser.opera ) {
// transitionEnd = "oTransitionEnd"
// }
return transitionEnd
}())
}
})()
})
}( window.jQuery );
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
body{padding-top:50px}#banner{border-bottom:0}.page-header h1{font-size:4em}.bs-docs-section{margin-top:8em}.affix{top:70px}footer{margin:5em 0}footer li{float:left;margin-right:1.5em;margin-bottom:1.5em}footer p{margin-bottom:0;clear:left}.splash{padding:6em 0 2em;color:#fff;text-align:center;background:-webkit-linear-gradient(70deg,#080f1f 30%,#2b4b5a 87%,#435e67 100%);background:-o-linear-gradient(70deg,#080f1f 30%,#2b4b5a 87%,#435e67 100%);background:-ms-linear-gradient(70deg,#080f1f 30%,#2b4b5a 87%,#435e67 100%);background:-moz-linear-gradient(70deg,#080f1f 30%,#2b4b5a 87%,#435e67 100%);background:linear-gradient(20deg,#080f1f 30%,#2b4b5a 87%,#435e67 100%);background-attachment:fixed;background-color:#1c2533}.splash .alert{margin:4em 0 2em}.splash h1{font-size:4em}.splash #social{margin-top:6em}.section-tout{padding:4em 0 3em;background-color:#eaf1f1;border-top:1px solid rgba(255,255,255,0.1);border-bottom:1px solid rgba(0,0,0,0.1)}.section-tout [class^="icon-"]{margin-right:.5em}.section-tout p{margin-bottom:3em}.section-preview{padding:4em 0 4em}.section-preview .preview{margin-bottom:4em;background-color:#eaf1f1;border:1px solid rgba(0,0,0,0.1);border-radius:6px}.section-preview .preview .image{padding:5px}.section-preview .preview .image img{border:1px solid rgba(0,0,0,0.1)}.section-preview .preview .options{padding:0 2em 2em;text-align:center}.section-preview .preview .options p{margin-bottom:2em}.section-preview .dropdown-menu{text-align:left}.section-preview .lead{margin-bottom:2em}@media(max-width:767px){.section-preview .image img{width:100%}}.bsa .one .bsa_it_ad{background-color:transparent!important;border:none!important}.bsa .one .bsa_it_ad .bsa_it_t,.bsa .one .bsa_it_ad .bsa_it_d{color:inherit!important}.bsa .one .bsa_it_p{display:none}
$('[data-toggle="tooltip"]').tooltip();
\ No newline at end of file
(function(){
var bsa = document.createElement('script');
bsa.type = 'text/javascript';
bsa.async = true;
bsa.src = 'http://s3.buysellads.com/ac/bsa.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
\ No newline at end of file
This diff is collapsed.
.loader{
text-align:center;
transform: translate(0, 50%) !important;
-ms-transform: translate(0, 50%) !important; /*IE 9*/
-webkit-transform: translate(0, 50%) !important; /*Safari and Chrome */
}
.navbar {
margin-bottom:1px;
}
#defaultop{
min-height: 5%;
max-height: 10%;
}
#sigma-example {
width: 100%;
height: 300px;
position:relative;
float:left;
}
/*.btn-sm[normal] {*/
/* background-image: -webkit-linear-gradient(#5f8ab9, #3e648d 50%, #385a7f);*/
/* background-image: linear-gradient(#5f8ab9, #3e648d 50%, #385a7f);*/
/* background-repeat: no-repeat;*/
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5f8ab9', endColorstr='#ff385a7f', GradientType=0);*/
/* filter: none;*/
/* border: 1px solid #2e4b69;*/
/*}*/
#left{
display: inline-block;
}
/*.modal-vertical-centered {*/
#selectionsBox{
text-align:center;
background-color:white;
color:#250587;
margin: 7px;
padding: 3px;
border: 1px solid #666;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-border-radius: 3px;
-moz-box-shadow: 0px 2px 6px #000;
-webkit-box-shadow: 0px 2px 6px #000;
box-shadow: 0px 2px 6px #000;
}
/*.selection-item{
display:inline-block;
border:solid 1px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-khtml-border-radius: 6px;'+
border-color:#BDBDBD;
padding:0px 2px 0px 2px;
margin:1px 0px 1px 0px;
cursor: pointer;
}*/
#opossitesBox{
margin: 7px;
padding: 10px;
border-style:solid;
background-color:white;
margin: 7px;
border: 1px solid #666;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-border-radius: 3px;
-moz-box-shadow: 0px 2px 6px #000;
-webkit-box-shadow: 0px 2px 6px #000;
box-shadow: 0px 2px 6px #000;
}
.tagcloud-item{
display:inline-block;
border:solid 1px;
/*box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.3); */
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-khtml-border-radius: 6px;'+
border-color:#BDBDBD;
padding:0px 2px 0px 2px;
margin:1px 0px 1px 0px;
cursor: pointer;
}
#topPapers{
margin: 7px;
padding: 10px 0px 10px 10px;
border-style:solid;
background-color:white;
color:black;
margin: 7px;
border: 1px solid #666;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-border-radius: 3px;
-moz-box-shadow: 0px 2px 6px #000;
-webkit-box-shadow: 0px 2px 6px #000;
box-shadow: 0px 2px 6px #000;
}
.grey {
color: #cccccc; font-style: italic;
}
.gradient {
background-color: #f0f0f8;
background-image: -webkit-radial-gradient(#ffffff, #d8d8e0); background-image: -moz-radial-gradient(#ffffff, #d8d8e0);
/*background-color: #434343;*/
/*background-image: linear-gradient(#434343, #282828);*/
background-image: linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, .02) 25%, rgba(0, 0, 0, .02) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .02) 75%, rgba(0, 0, 0, .02) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, .02) 25%, rgba(0, 0, 0, .02) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .02) 75%, rgba(0, 0, 0, .02) 76%, transparent 77%, transparent);
background-size: 50px 50px;
}
/* ZOOM IN OUT */
#ctlzoom {
position: absolute; right: 300px; bottom: 5px; list-style: none; padding: 0; margin: 0;/*EDIT*/
}
#ctlzoom li {
padding: 0; margin: 10px 0; width: 36px; text-align: center;
}
#zoomSliderzone {
height: 120px;
}
#zoomMinusButton, #zoomPlusButton {
display: block; width: 24px; height: 24px; background:url("../img2/plusmoins.png"); margin: 0 auto;
}
#zoomMinusButton {
background-position: 0 -24px;
}
#zoomMinusButton:hover {
background-position: -24px -24px;
}
#zoomPlusButton {
background-position: 0 0;
}
#zoomPlusButton:hover {
background-position: -24px 0;
}
#lensButton {
display: block; width: 36px; height: 36px; background:url("../img2/loupe-edges2.png"); margin: 0 auto;
}
#lensButton {
background-position: -72px 0;
}
#lensButton:hover {
background-position: -36px 0;
}
#lensButton.off {
background-position: 0 0;
}
#lensButton.off:hover {
background-position: -108px 0;
}
#edgesButton {
display: block; width: 36px; height: 36px; background:url("../img2/loupe-edges.png"); margin: 0 auto;
}
#edgesButton {
background-position: -72px -36px;
}
#edgesButton:hover {
background-position: -36px -36px;
}
#edgesButton.off {
background-position: 0 -36px;
}
#edgesButton.off:hover {
background-position: -108px -36px;
}
#unfold {
width: 12px; height: 12px; background: rgb(250, 250, 252); padding: 2px 2px 2px 0; border-top-right-radius: 5px; border-bottom-right-radius: 5px; box-shadow: 1px 1px 2px #808090;
}
#aUnfold {
display: block; width: 12px; height: 12px; background-image: url("../img2/fleches-horiz.png"); margin: 0 auto;
}
/*
#saveAs {
display: block; width: 30px; height: 30px; background:url("../img2/Save.png"); margin: 0 auto;
}
*/
#zoomSlider {
background:#fff;
border:1px solid #aaa;
height: 120px; margin: 0 auto;
}
#showChat{
position: absolute; top: 16px; right: -14px; width: 20px; height: 100px; background: rgb(250, 250, 252); padding: 2px 2px 2px 0; border-top-left-radius: 5px; border-bottom-left-radius: 5px; box-shadow: 1px 1px 2px #808090;
}
#aShowChat {
float: right; width: 100%; height: 100%; background-image: url("../img2/chat.png");
}
/* GESTION DE LA BARRE DE GAUCHE */
.leftarrow {
background-position: -12px 0;
}
.rightarrow {
background-position: 0 0;
}
.leftarrow:hover {
background-position: -12px -12px;
}
.rightarrow:hover {
background-position: 0 -12px;
}
#tips{
padding-left: 5%;
padding-right: 5%;
font-size:80%;
}
#tips ul{
/*list-style:none;*/
padding-left:10%;
}
#information {
font-size:80%;
}
#information ul {
list-style:none;
padding-left:5%;
}
.btn-sm:hover {
font-weight: bold;
}
@font-face {
font-family: 'Josefin Sans';
font-style: normal;
font-weight: 300;
src: local('Josefin Sans Light'), local('JosefinSans-Light'), url('JosefinSans300.woff') format('woff');
}
@font-face {
font-family: 'Josefin Sans';
font-style: normal;
font-weight: 400;
src: local('Josefin Sans'), local('JosefinSans'), url('JosefinSans400.woff') format('woff');
}
@font-face {
font-family: 'Josefin Sans';
font-style: normal;
font-weight: 700;
src: local('Josefin Sans Bold'), local('JosefinSans-Bold'), url('JosefinSans700.woff') format('woff');
}
.fsslider {
position: relative;
min-width: 100px;
height: 8px;
display: inline-block;
width: 100%;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color: #000;
}
.fsslider {
text-align: center;
line-height: 8px;
font-size: 8px;
font-family: "Lucida Grande", "Trebuchet MS";
}
.fsslider > * {
position: absolute;
top: 50%;
cursor: pointer;
}
.fsslider > .fsfull-value, .fsslider > .fssel-value {
margin-top: -1px;
height: 2px;
left: 0;
right: 0;
}
.fsslider > .fsfull-value {
width: 100%;
background: #d8d8d8;/*complement of selected area*/
}
.fsslider > .fssel-left, .fsslider > .fssel-right, .fsslider > .fscaret {
background: #fff;/*buttons*/
box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
height: 100%;
min-width: 15px;
top: 0;
padding-left: 5px;
padding-right: 5px;
}
.fsslider > .fssel-value {
/*background: #ff7c19;*/
background: #27c470;/*selected area*/
height: 4px;
margin-top: -2px;
right: 50%;
}
.fsslider.fsdisabled {
color: #c8c8c8;
}
.fsslider.fsdisabled > .fssel-value {
background: #c8c8c8;
}
#wrapper {
/*transition: all 0.1s ease 0s;*/
}
/*old one*/
/*#leftcolumn {
margin-left: -210px;
margin-right: 0px;
left: 210px;
width: 210px;
background: url(../img/climpek.png) repeat;
position: fixed;
height: 100%;
border: 1px #888888 solid;
-moz-box-shadow: 0px 0px 3px 0px #888888;
-webkit-box-shadow: 0px 0px 3px 0px #888888;
box-shadow: 0px 0px 3px 0px #888888;
overflow-y: auto;
z-index: 1000;
transition: all 0.4s ease 0s;
}*/
#leftcolumn {
overflow-y: scroll;
margin-right: -300px;
margin-left: 0px;
padding-bottom: 10px;
padding-left: 5px;
right: 300px;
width: 300px;
position: fixed;
height: 100%;
border: 1px #888888 solid;
background: #fff url(../img2/bg.jpg) repeat top right;
-webkit-border-radius: 0px 11px 11px 0px;-moz-border-radius: 0px 11px 11px 0px; border-radius: 0px 11px 11px 0px;-webkit-box-shadow: #B3B3B3 4px 4px 4px;-moz-box-shadow: #B3B3B3 4px 4px 4px; box-shadow: #B3B3B3 4px 4px 4px;
/*-webkit-border-radius: 11px 0px 0px 11px;-moz-border-radius: 11px 0px 0px 11px;border-radius: 11px 0px 0px 11px;-webkit-box-shadow: #B3B3B3 4px 4px 4px;-moz-box-shadow: #B3B3B3 4px 4px 4px; box-shadow: #B3B3B3 4px 4px 4px;*/
/*transition: all 0.1s ease 0s;*/
}
#page-content-wrapper {
width: 100%;
}
/**
* Created by tuanchauict on 3/24/14.
*/
(function($){
/**
* options.range = true or false, [default: false]
* options.onchange = callback function when slider caret changed, onchange(low, high) for ranged, and onchange(value) for unranged
* options.min = minimum of value [default: 0]
* options.max = maximum of value [default: 100]
* options.step [default: 1]
* options.unit = the unit which be shown, [default: none]
* options.enabled = true / false. [default: true]
* options.value = number if count = 1 , or 2 elements array contains low and high value if count = 2
* options.text = true or false, [default: true]
* @param options
* @returns {$.fn}
*/
$.fn.freshslider = function(options){
var me = this;
var range = typeof options.range == 'undefined'? false : options.range,
isSingle = !range,
bgcolor = options.bgcolor,//"#27c470",
min = options.min || 0,
max = options.max || 100,
gap = max - min,
step = options.step || 1,
unit = options.unit || '',
enabled = typeof options.enabled == 'undefined'? true: options.enabled,
values = [0, 1],
text = typeof options.text == 'undefined' ? true:options.text,
view = null;
if(gap < 0){
throw new Error();
}
var isFunction = function(object){
return object && Object.prototype.toString.call(object) == '[object Function]';
};
var updateCallback = null;
if(isFunction(options.onchange) == true){
updateCallback = options.onchange;
}
var strStep = '' + step;
var countPoint = 0;
if(strStep.indexOf('.') >= 0){
countPoint = strStep.length - strStep.indexOf('.') - 1;
}
if(options.hasOwnProperty('value')){
if(!isSingle){
if(options.value.length && options.value.length == 2){
values[0] = (options.value[0] - min) / gap;
values[1] = (options.value[1] - min) / gap;
}
}
else{
values[1] = (options.value - min) / gap;
}
}
else{
if(isSingle){
values[1] = 0.5;
}
}
if(range){
view = this.html("<div class='fsslider'><div class='fsfull-value'></div>" +
"<div class='fssel-value'></div><div class='fscaret fss-left'></div>" +
"<div class='fscaret fss-right'></div></div>").find('.fsslider');
}
else{
view = this.html("<div class='fsslider'><div class='fsfull-value'></div>" +
"<div class='fssel-value'></div><div class='fscaret'></div></div>")
.find('.fsslider');
}
var caretLeft = $(this.find('.fscaret')[0]);
var caretRight = isSingle? caretLeft:$(this.find('.fscaret')[1]);
var selVal = this.find('.fssel-value');
var round = function(val){
return step * Math.round(val/step);
};
var num2Text = function(number){
return number.toFixed(countPoint);
};
var updateCarets = function(){
if(text){
caretRight.text((round(values[1] * gap) + min).toFixed(countPoint) + unit);
if(!isSingle){
caretLeft.text((round(values[0] * gap) + min).toFixed(countPoint) + unit);
}
}
var sliderWidth = me.width(),
caretLeftWidth = caretLeft.outerWidth(),
caretRightWidth = caretRight.outerWidth(),
realWidth = sliderWidth - (caretLeftWidth + caretRightWidth) / 2;
selVal.css({
left:values[0] * sliderWidth,
width:(values[1] - values[0]) * sliderWidth,
background:bgcolor
});
caretLeft.css({
left:values[0] * realWidth + caretLeftWidth/2,
"margin-left": -(caretLeftWidth/2),
'z-index':isRight?0:1
});
caretRight.css({
left:values[1] * realWidth + caretRightWidth / 2,
"margin-left": -(caretRightWidth/2),
'z-index':isRight?1:0
});
if(updateCallback){
if(isSingle){
updateCallback(round(values[1] * gap) + min);
}
else{
updateCallback(round(values[0] * gap) + min, round(values[1] * gap ) + min);
}
}
};
var isRight = true;
var isDown = false;
this.mousedown(function(e){
if(!enabled){
return;
}
isDown =true;
var sliderWidth = me.width(),
caretLeftWidth = caretLeft.outerWidth(),
caretRightWidth = caretRight.outerWidth(),
realWidth = sliderWidth - (caretLeftWidth + caretRightWidth) / 2;
var target = e.target;
var cls = target.className;
var x = e.pageX - me.offset().left;
var realX = x - caretLeftWidth/2;
realX = realX < 0? 0:realX > realWidth ? realWidth:realX;
if(isSingle){
values[1] = realX / realWidth;
isRight = true;
}
else{
switch (cls){
case 'fscaret fss-left':
isRight = false;
values[0] = realX/realWidth;
break;
case 'fscaret fss-right':
isRight = true;
values[1] = realX/realWidth;
break;
default:
if(realX < (values[0] + values[1])/2 * realWidth){
isRight = false;
values[0] = realX / realWidth;
}
else{
isRight = true;
values[1] = realX / realWidth;
}
}
}
updateCarets();
if(event.preventDefault){
event.preventDefault();
}
else{
return false;
}
});
var onMouseUp = function(){
if(!enabled){
return;
}
isDown = false;
values[1] = round(values[1] * gap) / gap;
if(!isSingle){
values[0] = round(values[0] * gap) / gap;
}
updateCarets();
};
$(document).mouseup(function(e){
if(isDown)
onMouseUp();
});
this.mousemove(function(e){
if(!enabled){
return;
}
if(isDown){
var sliderWidth = me.width(),
caretLeftWidth = caretLeft.outerWidth(),
caretRightWidth = caretRight.outerWidth(),
realWidth = sliderWidth - (caretLeftWidth + caretRightWidth) / 2;
var target = e.target;
var cls = target.className;
var x = e.pageX - me.offset().left;
var realX = x - caretLeftWidth/2;
realX = realX < 0? 0:realX > realWidth ? realWidth:realX;
if(isSingle){
values[1] = realX / realWidth;
isRight = true;
}
else{
if(isRight){
values[1] = realX / realWidth;
if(values[1] < values[0]){
values[1] = values[0];
}
}
else{
values[0] = realX / realWidth;
if(values[0] > values[1]){
values[0] = values[1];
}
}
}
updateCarets();
}
if(event.preventDefault){
event.preventDefault();
}
else{
return false;
}
});
this.getValue = function(){
if(isSingle){
return [values[1] * gap + min];
}
else{
return [values[0] * gap + min, values[1] * gap + min];
}
};
this.setValue = function(){
if(!isSingle){
if(arguments.length >= 2){
values[0] = (options.value[0] - min) / gap;
values[1] = (options.value[1] - min) / gap;
updateCarets();
}
}
else{
values[1] = (arguments[0] - min) / gap;
updateCarets();
}
};
this.setEnabled = function(_enable){
enabled = typeof _enable == 'undefined' ? true:_enable;
if(enabled){
view.removeClass('fsdisabled');
}
else{
view.addClass('fsdisabled');
}
};
this.setEnabled(enabled);
updateCarets();
return this;
}
}(jQuery));
\ No newline at end of file
jQuery UI Authors (http://jqueryui.com/about)
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
and logs, available at http://github.com/jquery/jquery-ui
Brandon Aaron
Paul Bakaus (paulbakaus.com)
David Bolter
Rich Caloggero
Chi Cheng (cloudream@gmail.com)
Colin Clark (http://colin.atrc.utoronto.ca/)
Michelle D'Souza
Aaron Eisenberger (aaronchi@gmail.com)
Ariel Flesler
Bohdan Ganicky
Scott González
Marc Grabanski (m@marcgrabanski.com)
Klaus Hartl (stilbuero.de)
Scott Jehl
Cody Lindley
Eduardo Lundgren (eduardolundgren@gmail.com)
Todd Parker
John Resig
Patty Toland
Ca-Phun Ung (yelotofu.com)
Keith Wood (kbwood@virginbroadband.com.au)
Maggie Costello Wachs
Richard D. Worth (rdworth.org)
Jörn Zaefferer (bassistance.de)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* jQuery doTimeout: Like setTimeout, but better! - v1.0 - 3/3/2010
* http://benalman.com/projects/jquery-dotimeout-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($){var a={},c="doTimeout",d=Array.prototype.slice;$[c]=function(){return b.apply(window,[0].concat(d.call(arguments)))};$.fn[c]=function(){var f=d.call(arguments),e=b.apply(this,[c+f[0]].concat(f));return typeof f[0]==="number"||typeof f[1]==="number"?this:e};function b(l){var m=this,h,k={},g=l?$.fn:$,n=arguments,i=4,f=n[1],j=n[2],p=n[3];if(typeof f!=="string"){i--;f=l=0;j=n[1];p=n[2]}if(l){h=m.eq(0);h.data(l,k=h.data(l)||{})}else{if(f){k=a[f]||(a[f]={})}}k.id&&clearTimeout(k.id);delete k.id;function e(){if(l){h.removeData(l)}else{if(f){delete a[f]}}}function o(){k.id=setTimeout(function(){k.fn()},j)}if(p){k.fn=function(q){if(typeof p==="string"){p=g[p]}p.apply(m,d.call(n,i))===true&&!q?o():e()};o()}else{if(k.fn){j===undefined?e():k.fn(j===false);return true}else{e()}}}})(jQuery);
\ No newline at end of file
;(function($, window, document, undefined) {
var pluginName = 'autoHidingNavbar',
$window = $(window),
$document = $(document),
_scrollThrottleTimer = null,
_resizeThrottleTimer = null,
_throttleDelay = 70,
_lastScrollHandlerRun = 0,
_previousScrollTop = null,
_windowHeight = $window.height(),
_visible = true,
_hideOffset,
defaults = {
disableAutohide: false,
showOnUpscroll: true,
showOnBottom: true,
hideOffset: 'auto', // "auto" means the navbar height
animationDuration: 200
};
function AutoHidingNavbar(element, options) {
this.element = $(element);
this.settings = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this.init();
}
function hide(autoHidingNavbar) {
if (!_visible) {
return;
}
autoHidingNavbar.element.addClass('navbar-hidden').animate({
top: -autoHidingNavbar.element.height()
}, {
queue: false,
duration: autoHidingNavbar.settings.animationDuration
});
$('.dropdown.open .dropdown-toggle', autoHidingNavbar.element).dropdown('toggle');
_visible = false;
}
function show(autoHidingNavbar) {
if (_visible) {
return;
}
autoHidingNavbar.element.removeClass('navbar-hidden').animate({
top: 0
}, {
queue: false,
duration: autoHidingNavbar.settings.animationDuration
});
_visible = true;
}
function detectState(autoHidingNavbar) {
var scrollTop = $window.scrollTop(),
scrollDelta = scrollTop - _previousScrollTop;
_previousScrollTop = scrollTop;
if (scrollDelta < 0) {
if (_visible) {
return;
}
if (autoHidingNavbar.settings.showOnUpscroll || scrollTop <= _hideOffset) {
show(autoHidingNavbar);
}
}
else if (scrollDelta > 0) {
if (!_visible) {
if (autoHidingNavbar.settings.showOnBottom && scrollTop + _windowHeight === $document.height()) {
show(autoHidingNavbar);
}
return;
}
if (scrollTop >= _hideOffset) {
hide(autoHidingNavbar);
}
}
}
function scrollHandler(autoHidingNavbar) {
if (autoHidingNavbar.settings.disableAutohide) {
return;
}
_lastScrollHandlerRun = new Date().getTime();
detectState(autoHidingNavbar);
}
function bindEvents(autoHidingNavbar) {
$document.on('scroll.' + pluginName, function() {
if (new Date().getTime() - _lastScrollHandlerRun > _throttleDelay) {
scrollHandler(autoHidingNavbar);
}
else {
clearTimeout(_scrollThrottleTimer);
_scrollThrottleTimer = setTimeout(function() {
scrollHandler(autoHidingNavbar);
}, _throttleDelay);
}
});
$window.on('resize.' + pluginName, function() {
clearTimeout(_resizeThrottleTimer);
_resizeThrottleTimer = setTimeout(function() {
_windowHeight = $window.height();
}, _throttleDelay);
});
}
function unbindEvents() {
$document.off('.' + pluginName);
$window.off('.' + pluginName);
}
AutoHidingNavbar.prototype = {
init: function() {
this.elements = {
navbar: this.element
};
this.setDisableAutohide(this.settings.disableAutohide);
this.setShowOnUpscroll(this.settings.showOnUpscroll);
this.setShowOnBottom(this.settings.showOnBottom);
this.setHideOffset(this.settings.hideOffset);
this.setAnimationDuration(this.settings.animationDuration);
_hideOffset = this.settings.hideOffset === 'auto' ? this.element.height() : this.settings.hideOffset;
bindEvents(this);
return this.element;
},
setDisableAutohide: function(value) {
this.settings.disableAutohide = value;
return this.element;
},
setShowOnUpscroll: function(value) {
this.settings.showOnUpscroll = value;
return this.element;
},
setShowOnBottom: function(value) {
this.settings.showOnBottom = value;
return this.element;
},
setHideOffset: function(value) {
this.settings.hideOffset = value;
return this.element;
},
setAnimationDuration: function(value) {
this.settings.animationDuration = value;
return this.element;
},
show: function() {
show(this);
return this.element;
},
hide: function() {
hide(this);
return this.element;
},
destroy: function() {
unbindEvents(this);
show(this);
$.data(this, 'plugin_' + pluginName, null);
return this.element;
}
};
$.fn[pluginName] = function(options) {
var args = arguments;
if (options === undefined || typeof options === 'object') {
return this.each(function() {
if (!$.data(this, 'plugin_' + pluginName)) {
$.data(this, 'plugin_' + pluginName, new AutoHidingNavbar(this, options));
}
});
} else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') {
var returns;
this.each(function() {
var instance = $.data(this, 'plugin_' + pluginName);
if (instance instanceof AutoHidingNavbar && typeof instance[options] === 'function') {
returns = instance[options].apply(instance, Array.prototype.slice.call(args, 1));
}
});
return returns !== undefined ? returns : this;
}
};
})(jQuery, window, document);
/*
DynaCloud v5
A dynamic JavaScript tag/keyword cloud with jQuery.
<http://johannburkard.de/blog/programming/javascript/dynacloud-a-dynamic-javascript-tag-keyword-cloud-with-jquery.html>
MIT license.
Johann Burkard
<http://johannburkard.de>
<mailto:jb@eaio.com>
*/
jQuery.fn.highlight = function(pat) {
function innerHighlight(node, pat) {
var skip = 0;
if (node.nodeType == 3) {
var pos = node.data.toUpperCase().indexOf(pat);
if (pos >= 0) {
var spannode = document.createElement('span');
spannode.className = 'highlight';
var middlebit = node.splitText(pos);
var endbit = middlebit.splitText(pat.length);
var middleclone = middlebit.cloneNode(true);
spannode.appendChild(middleclone);
middlebit.parentNode.replaceChild(spannode, middlebit);
skip = 1;
}
}
else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) {
for (var i = 0; i < node.childNodes.length; ++i) {
i += innerHighlight(node.childNodes[i], pat);
}
}
return skip;
}
return this.each(function() {
innerHighlight(this, pat.toUpperCase());
});
};
jQuery.fn.removeHighlight = function() {
return this.find("span.highlight").each(function() {
this.parentNode.firstChild.nodeName;
with (this.parentNode) {
replaceChild(this.firstChild, this);
normalize();
}
}).end();
};
jQuery.dynaCloud = {
max: 20,
sort: true,
auto: true,
single: true,
wordStats: true,
scale: 4,
// Adapted from <http://www.perseus.tufts.edu/Texts/engstop.html>
stopwords: [ "a", "about", "above", "accordingly", "after",
"again", "against", "ah", "all", "also", "although", "always", "am", "among", "amongst", "an",
"and", "any", "anymore", "anyone", "are", "as", "at", "away", "be", "been",
"begin", "beginning", "beginnings", "begins", "begone", "begun", "being",
"below", "between", "but", "by", "ca", "can", "cannot", "come", "could",
"did", "do", "doing", "during", "each", "either", "else", "end", "et",
"etc", "even", "ever", "far", "ff", "following", "for", "from", "further", "furthermore",
"get", "go", "goes", "going", "got", "had", "has", "have", "he", "her",
"hers", "herself", "him", "himself", "his", "how", "i", "if", "in", "into",
"is", "it", "its", "itself", "last", "lastly", "less", "many", "may", "me",
"might", "more", "must", "my", "myself", "near", "nearly", "never", "new",
"next", "no", "not", "now", "o", "of", "off", "often", "oh", "on", "only",
"or", "other", "otherwise", "our", "ourselves", "out", "over", "perhaps",
"put", "puts", "quite", "s", "said", "saw", "say", "see", "seen", "shall",
"she", "should", "since", "so", "some", "such", "t", "than", "that", "the",
"their", "them", "themselves", "then", "there", "therefore", "these", "they",
"this", "those", "though", "throughout", "thus", "to", "too",
"toward", "unless", "until", "up", "upon", "us", "ve", "very", "was", "we",
"were", "what", "whatever", "when", "where", "which", "while", "who",
"whom", "whomever", "whose", "why", "with", "within", "without", "would",
"yes", "your", "yours", "yourself", "yourselves" ]
};
jQuery(function() {
jQuery.dynaCloud.stopwords = new RegExp("\\s((" + jQuery.dynaCloud.stopwords.join("|") + ")\\s)+", "gi");
if (jQuery.dynaCloud.auto) {
jQuery('.dynacloud').dynaCloud();
}
});
jQuery.fn.dynaCloud = function(outElement) {
var cloud = {};
return this.each(function() {
var cl = [];
var max = 0;
if (jQuery.wordStats && jQuery.dynaCloud.wordStats) {
jQuery.wordStats.computeTopWords(jQuery.dynaCloud.max, this);
for (var i = 0, j = jQuery.wordStats.topWords.length; i < j && i <= jQuery.dynaCloud.max; ++i) {
var t = jQuery.wordStats.topWords[i].substring(1);
if (typeof cloud[t] == 'undefined') {
cloud[t] = { count: jQuery.wordStats.topWeights[i], el: t };
}
else {
cloud[t].count += jQuery.wordStats.topWeights[i];
}
max = Math.max(cloud[t].count, max);
}
jQuery.wordStats.clear();
}
else {
var elems = jQuery(this).text().replace(/[^A-Z\xC4\xD6\xDCa-z\xE4\xF6\xFC\xDF0-9_]/g, ' ').replace(jQuery.dynaCloud.stopwords, ' ').split(' ');
var word = /^[a-z\xE4\xF6\xFC]*[A-Z\xC4\xD6\xDC]([A-Z\xC4\xD6\xDC\xDF]+|[a-z\xE4\xF6\xFC\xDF]{3,})/;
jQuery.each(elems, function(i, n) {
if (word.test(n)) {
var t = n.toLowerCase();
if (typeof cloud[t] == 'undefined') {
cloud[t] = { count: 1, el: n };
}
else {
cloud[t].count += 1;
}
max = Math.max(cloud[t].count, max);
}
});
}
jQuery.each(cloud, function(i, n) {
cl[cl.length] = n;
});
if (jQuery.dynaCloud.sort) {
cl.sort(function(a, b) {
if (a.count == b.count) {
return a.el < b.el ? -1 : (a.el == b.el ? 0 : 1);
}
else {
return a.count < b.count ? 1 : -1;
}
});
}
var out;
if ((out = jQuery(outElement ? outElement : '#dynacloud')).length == 0) {
jQuery(document.body).append('<p id="dynacloud"><\/p>');
out = jQuery('#dynacloud');
}
out.empty();
var l = jQuery.dynaCloud.max == -1 ? cl.length : Math.min(jQuery.dynaCloud.max, cl.length);
for (var i = 0; i < l; ++i) {
out.append('<a href="#' + cl[i].el + '" style="font-size: ' + Math.ceil((cl[i].count / max) * jQuery.dynaCloud.scale) + 'em"><span>' + cl[i].el + '</span></a> &nbsp; ');
}
var target = this;
jQuery('a', out).each(function() {
jQuery(this).click(function() {
if (jQuery.dynaCloud.single) {
jQuery(document.body).removeHighlight();
}
var text = jQuery(this).text().toUpperCase();
jQuery(target).each(function() {
jQuery(this).highlight(text);
});
return false;
});
});
});
};
/*
highlight v3
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
MIT license.
Johann Burkard
<http://johannburkard.de>
<mailto:jb@eaio.com>
*/
jQuery.fn.highlight = function(pat) {
function innerHighlight(node, pat) {
var skip = 0;
if (node.nodeType == 3) {
var pos = node.data.toUpperCase().indexOf(pat);
if (pos >= 0) {
var spannode = document.createElement('span');
spannode.className = 'highlight';
var middlebit = node.splitText(pos);
var endbit = middlebit.splitText(pat.length);
var middleclone = middlebit.cloneNode(true);
spannode.appendChild(middleclone);
middlebit.parentNode.replaceChild(spannode, middlebit);
skip = 1;
}
}
else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) {
for (var i = 0; i < node.childNodes.length; ++i) {
i += innerHighlight(node.childNodes[i], pat);
}
}
return skip;
}
return this.each(function() {
innerHighlight(this, pat.toUpperCase());
});
};
jQuery.fn.removeHighlight = function() {
return this.find("span.highlight").each(function() {
this.parentNode.firstChild.nodeName;
with (this.parentNode) {
replaceChild(this.firstChild, this);
normalize();
}
}).end();
};
(function($){$.toJSON=function(o)
{if(typeof(JSON)=='object'&&JSON.stringify)
return JSON.stringify(o);var type=typeof(o);if(o===null)
return"null";if(type=="undefined")
return undefined;if(type=="number"||type=="boolean")
return o+"";if(type=="string")
return $.quoteString(o);if(type=='object')
{if(typeof o.toJSON=="function")
return $.toJSON(o.toJSON());if(o.constructor===Date)
{var month=o.getUTCMonth()+1;if(month<10)month='0'+month;var day=o.getUTCDate();if(day<10)day='0'+day;var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10)hours='0'+hours;var minutes=o.getUTCMinutes();if(minutes<10)minutes='0'+minutes;var seconds=o.getUTCSeconds();if(seconds<10)seconds='0'+seconds;var milli=o.getUTCMilliseconds();if(milli<100)milli='0'+milli;if(milli<10)milli='0'+milli;return'"'+year+'-'+month+'-'+day+'T'+
hours+':'+minutes+':'+seconds+'.'+milli+'Z"';}
if(o.constructor===Array)
{var ret=[];for(var i=0;i<o.length;i++)
ret.push($.toJSON(o[i])||"null");return"["+ret.join(",")+"]";}
var pairs=[];for(var k in o){var name;var type=typeof k;if(type=="number")
name='"'+k+'"';else if(type=="string")
name=$.quoteString(k);else
continue;if(typeof o[k]=="function")
continue;var val=$.toJSON(o[k]);pairs.push(name+":"+val);}
return"{"+pairs.join(", ")+"}";}};$.evalJSON=function(src)
{if(typeof(JSON)=='object'&&JSON.parse)
return JSON.parse(src);return eval("("+src+")");};$.secureEvalJSON=function(src)
{if(typeof(JSON)=='object'&&JSON.parse)
return JSON.parse(src);var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']');filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,'');if(/^[\],:{}\s]*$/.test(filtered))
return eval("("+src+")");else
throw new SyntaxError("Error parsing JSON, source is not valid.");};$.quoteString=function(string)
{if(string.match(_escapeable))
{return'"'+string.replace(_escapeable,function(a)
{var c=_meta[a];if(typeof c==='string')return c;c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}
return'"'+string+'"';};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var _meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};})(jQuery);
\ No newline at end of file
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.6
*
* Requires: 1.2.2+
*/
(function(a){
function d(b){
var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;
return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)
}
var b=["DOMMouseScroll","mousewheel"];
if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;
a.event.special.mousewheel={
setup:function(){
if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d
},
teardown:function(){
if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null
}
},a.fn.extend({
mousewheel:function(a){
return a?this.bind("mousewheel",a):this.trigger("mousewheel")
},
unmousewheel:function(a){
return this.unbind("mousewheel",a)
}
})
})(jQuery)
/*
* jQuery nap 1.0.0
* www.frebsite.nl
* Copyright (c) 2010 Fred Heusschen
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function($) {
$.fn.nap = function(fallAsleep, wakeUp, standbyTime) {
if (typeof(standbyTime) == 'number' && standbyTime > 0) {
$.fn.nap.standbyTime = standbyTime;
if ($.fn.nap.readySetGo) {
$.fn.nap.pressSnooze();
}
}
if (!$.fn.nap.readySetGo) {
$.fn.nap.readySetGo = true;
$(window).mousemove(function() {
$.fn.nap.interaction();
});
$(window).keyup(function() {
$.fn.nap.interaction();
});
$(window).mousedown(function() {
$.fn.nap.interaction();
});
$(window).scroll(function() {
$.fn.nap.interaction();
});
$.fn.nap.pressSnooze();
}
return this.each(function() {
$.fn.nap.fallAsleepFunctions.push({
func: fallAsleep,
napr: $(this)
});
$.fn.nap.wakeUpFunctions.push({
func: wakeUp,
napr: $(this)
});
});
}
$.fn.nap.standbyTime = 60;
$.fn.nap.isAwake = true;
$.fn.nap.readySetGo = false;
$.fn.nap.fallAsleepFunctions = new Array();
$.fn.nap.wakeUpFunctions = new Array();
$.fn.nap.fallAsleep = function() {
$.fn.nap.isAwake = false;
clearInterval($.fn.nap.alarmClock);
$.fn.nap.callFunctions($.fn.nap.fallAsleepFunctions);
};
$.fn.nap.wakeUp = function() {
$.fn.nap.isAwake = true;
$.fn.nap.callFunctions($.fn.nap.wakeUpFunctions);
};
$.fn.nap.pressSnooze = function() {
clearInterval($.fn.nap.alarmClock);
$.fn.nap.alarmClock = setInterval(function() {
$.fn.nap.fallAsleep();
}, $.fn.nap.standbyTime * 1000);
}
$.fn.nap.interaction = function() {
if (!$.fn.nap.isAwake) {
$.fn.nap.wakeUp();
}
$.fn.nap.pressSnooze();
}
$.fn.nap.callFunctions = function(f) {
for (var i in f) {
if (typeof(f[i].func) == 'function') {
f[i].func();
} else if (typeof(f[i].func) == 'string' && f[i].func.length > 0) {
f[i].napr.trigger(f[i].func);
} else if (typeof(f[i].func) == 'object') {
for (var z in f[i].func) {
f[i].napr.trigger(f[i].func[z]);
}
}
}
}
})(jQuery);
\ No newline at end of file
/*
* jQuery Notify UI Widget 1.4
* Copyright (c) 2010 Eric Hynds
*
* http://www.erichynds.com/jquery/a-jquery-ui-growl-ubuntu-notification-widget/
*
* Depends:
* - jQuery 1.4
* - jQuery UI 1.8 widget factory
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
(function(d){d.widget("ech.notify",{options:{speed:500,expires:5E3,stack:"below",custom:false},_create:function(){var a=this;this.templates={};this.keys=[];this.element.addClass("ui-notify").children().addClass("ui-notify-message ui-notify-message-style").each(function(b){b=this.id||b;a.keys.push(b);a.templates[b]=d(this).removeAttr("id").wrap("<div></div>").parent().html()}).end().empty().show()},create:function(a,b,c){if(typeof a==="object"){c=b;b=a;a=null}a=this.templates[a||this.keys[0]];if(c&&c.custom)a=d(a).removeClass("ui-notify-message-style").wrap("<div></div>").parent().html();return(new d.ech.notify.instance(this))._create(b,d.extend({},this.options,c),a)}});d.extend(d.ech.notify,{instance:function(a){this.parent=a;this.isOpen=false}});d.extend(d.ech.notify.instance.prototype,{_create:function(a,b,c){this.options=b;var e=this;c=c.replace(/#(?:\{|%7B)(.*?)(?:\}|%7D)/g,function(f,g){return g in a?a[g]:""});c=this.element=d(c);var h=c.find(".ui-notify-close");typeof this.options.click==="function"&&c.addClass("ui-notify-click").bind("click",function(f){e._trigger("click",f,e)});h.length&&h.bind("click",function(){e.close();return false});this.open();typeof b.expires==="number"&&window.setTimeout(function(){e.close()},b.expires);return this},close:function(){var a=this,b=this.options.speed;this.isOpen=false;this.element.fadeTo(b,0).slideUp(b,function(){a._trigger("close")});return this},open:function(){if(this.isOpen||this._trigger("beforeopen")===false)return this;var a=this;this.isOpen=true;this.element[this.options.stack==="above"?"prependTo":"appendTo"](this.parent.element).css({display:"none",opacity:""}).fadeIn(this.options.speed,function(){a._trigger("open")});return this},widget:function(){return this.element},_trigger:function(a,b,c){return this.parent._trigger.call(this,a,b,c)}})})(jQuery);
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* vertical news ticker
* Tadas Juozapaitis ( kasp3rito@gmail.com )
* http://plugins.jquery.com/project/vTicker
*/
(function(a){a.fn.vTicker=function(b){var c={speed:700,pause:4000,showItems:3,animation:"",mousePause:true,isPaused:false,direction:"up",height:0};var b=a.extend(c,b);moveUp=function(g,d,e){if(e.isPaused){return}var f=g.children("ul");var h=f.children("li:first").clone(true);if(e.height>0){d=f.children("li:first").height()}f.animate({top:"-="+d+"px"},e.speed,function(){a(this).children("li:first").remove();a(this).css("top","0px")});if(e.animation=="fade"){f.children("li:first").fadeOut(e.speed);if(e.height==0){f.children("li:eq("+e.showItems+")").hide().fadeIn(e.speed)}}h.appendTo(f)};moveDown=function(g,d,e){if(e.isPaused){return}var f=g.children("ul");var h=f.children("li:last").clone(true);if(e.height>0){d=f.children("li:first").height()}f.css("top","-"+d+"px").prepend(h);f.animate({top:0},e.speed,function(){a(this).children("li:last").remove()});if(e.animation=="fade"){if(e.height==0){f.children("li:eq("+e.showItems+")").fadeOut(e.speed)}f.children("li:first").hide().fadeIn(e.speed)}};return this.each(function(){var f=a(this);var e=0;f.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:0,padding:0});if(b.height==0){f.children("ul").children("li").each(function(){if(a(this).height()>e){e=a(this).height()}});f.children("ul").children("li").each(function(){a(this).height(e)});f.height(e*b.showItems)}else{f.height(b.height)}var d=setInterval(function(){if(b.direction=="up"){moveUp(f,e,b)}else{moveDown(f,e,b)}},b.pause);if(b.mousePause){f.bind("mouseenter",function(){b.isPaused=true}).bind("mouseleave",function(){b.isPaused=false})}})}})(jQuery);
\ No newline at end of file
/*
* Customize as you want ;)
*/
// ============ < DEVELOPER OPTIONS > ============
var geomap=false;
var minimap=false;
var getAdditionalInfo=false;//for topPapers div
var mainfile=false;
getUrlParam.file = "data/testgraph.json";
var dataFolderTree = {};
var gexfDict={};
var egonode = {}
var iwantograph = "";
var bridge={};
external="";
//external="http://tina.iscpif.fr/explorerjs/";//Just if you want to use the server-apps from tina.server
bridge["forFilteredQuery"] = external+"php/bridgeClientServer_filter.php";
bridge["forNormalQuery"] = external+"php/bridgeClientServer.php";
ircNick="";
ircCHN="";
var catSoc = "Document";
var catSem = "NGram";
var sizeMult = [];
sizeMult[catSoc] = 0.0;
sizeMult[catSem] = 0.0;
var inactiveColor = '#666';
var startingNodeId = "1";
var minLengthAutoComplete = 1;
var maxSearchResults = 10;
var strSearchBar = "Search";
var cursor_size_min= 0;
var cursor_size= 0;
var cursor_size_max= 100;
var desirableTagCloudFont_MIN=12;
var desirableTagCloudFont_MAX=20;
var desirableNodeSizeMIN=1;
var desirableNodeSizeMAX=12;
var desirableScholarSize=6; //Remember that all scholars have the same size!
/*
*Three states:
* - true: fa2 running at start
* - false: fa2 stopped at start, button exists
* - "off": button doesn't exist, fa2 stopped forever
**/ var fa2enabled=false;//"off";
var stopcriteria = false;
var iterationsFA2=1000;
var seed=999999999;//defaultseed
var semanticConverged=false;
var showLabelsIfZoom=2.0;
var greyColor = "#9b9e9e";
// ============ < SIGMA.JS PROPERTIES > ============
var sigmaJsDrawingProperties = {
defaultLabelColor: 'black',
defaultLabelSize: 10,//in fact I'm using it as minLabelSize'
defaultLabelBGColor: '#fff',
defaultLabelHoverColor: '#000',
labelThreshold: 6,
defaultEdgeType: 'curve',
borderSize: 2.5,//Something other than 0
nodeBorderColor: "default",//exactly like this
defaultNodeBorderColor: "black"//,//Any color of your choice
//defaultBorderView: "always"
};
var sigmaJsGraphProperties = {
minEdgeSize: 2,
maxEdgeSize: 2
};
var sigmaJsMouseProperties = {
minRatio:0.1,
maxRatio: 15
};
// ============ < / SIGMA.JS PROPERTIES > ============
// ============ < / DEVELOPER OPTIONS > ============
// ============ < VARIABLES.JS > ============
//"http://webchat.freenode.net/?nick=Ademe&channels=#anoe"
var ircUrl="http://webchat.freenode.net/?nick="+ircNick+"&channels="+ircCHN;
var twjs="tinawebJS/";
var categories = {};
var categoriesIndex = [];
var gexf;
//var zoom=0;
var checkBox=false;
var overNodes=false;
var shift_key=false;
var NOW="A";
var PAST="--";
var swclickActual="";
var swclickPrev="";
var swMacro=true;
var socsemFlag=false;
var constantNGramFilter;
// var nodeFilterA_past = ""
// var nodeFilterA_now = ""
// var nodeFilterB_past = ""
// var nodeFilterB_now = ""
var lastFilter = []
lastFilter["#sliderBNodeWeight"] = "-"
lastFilter["#sliderAEdgeWeight"] = "-"
lastFilter["#sliderBEdgeWeight"] = "-"
// var edgeFilterB_past = ""
// var edgeFilterB_now = ""
var overviewWidth = 200;
var overviewHeight = 175;
var overviewScale = 0.25;
var overviewHover=false;
var moveDelay = 80, zoomDelay = 2;
//var Vecindad;
var partialGraph;
var otherGraph;
var Nodes = [];
var Edges = [];
var nodeslength=0;
var labels = [];
var numberOfDocs=0;
var numberOfNGrams=0;
var selections = [];
var deselections={};
var opossites = {};
var opos=[];
var oposMAX;
var matches = [];
var nodes1 = [];
var nodes2 = [];
var bipartiteD2N = [];
var bipartiteN2D = [];
var flag=0;
var firstime=0;
var leftright=true;
var edgesTF=false;
//This variables will be updated in sigma.parseCustom.js
var minNodeSize=1.00;
var maxNodeSize=5.00;
var minEdgeWeight=5.0;
var maxEdgeWeight=0.0;
//---------------------------------------------------
var bipartite=false;
var gexfDictReverse={}
for (var i in gexfDict){
gexfDictReverse[gexfDict[i]]=i;
}
var colorList = ["#000000", "#FFFF00", "#1CE6FF", "#FF34FF", "#FF4A46", "#008941", "#006FA6", "#A30059", "#FFDBE5", "#7A4900", "#0000A6", "#63FFAC", "#B79762", "#004D43", "#8FB0FF", "#997D87", "#5A0007", "#809693", "#FEFFE6", "#1B4400", "#4FC601", "#3B5DFF", "#4A3B53", "#FF2F80", "#61615A", "#BA0900", "#6B7900", "#00C2A0", "#FFAA92", "#FF90C9", "#B903AA", "#D16100", "#DDEFFF", "#000035", "#7B4F4B", "#A1C299", "#300018", "#0AA6D8", "#013349", "#00846F", "#372101", "#FFB500", "#C2FFED", "#A079BF", "#CC0744", "#C0B9B2", "#C2FF99", "#001E09", "#00489C", "#6F0062", "#0CBD66", "#EEC3FF", "#456D75", "#B77B68", "#7A87A1", "#788D66", "#885578", "#FAD09F", "#FF8A9A", "#D157A0", "#BEC459", "#456648", "#0086ED", "#886F4C","#34362D", "#B4A8BD", "#00A6AA", "#452C2C", "#636375", "#A3C8C9", "#FF913F", "#938A81", "#575329", "#00FECF", "#B05B6F", "#8CD0FF", "#3B9700", "#04F757", "#C8A1A1", "#1E6E00", "#7900D7", "#A77500", "#6367A9", "#A05837", "#6B002C", "#772600", "#D790FF", "#9B9700", "#549E79", "#FFF69F", "#201625", "#72418F", "#BC23FF", "#99ADC0", "#3A2465", "#922329", "#5B4534", "#FDE8DC", "#404E55", "#0089A3", "#CB7E98", "#A4E804", "#324E72", "#6A3A4C", "#83AB58", "#001C1E", "#D1F7CE", "#004B28", "#C8D0F6", "#A3A489", "#806C66", "#222800", "#BF5650", "#E83000", "#66796D", "#DA007C", "#FF1A59", "#8ADBB4", "#1E0200", "#5B4E51", "#C895C5", "#320033", "#FF6832", "#66E1D3", "#CFCDAC", "#D0AC94", "#7ED379", "#012C58"];
var RVUniformC = function(seed){
this.a=16807;
this.b=0;
this.m=2147483647;
this.u;
this.seed=seed;
this.x = this.seed;
// this.generar = function(n){
// uniforme = [];
// x = 0.0;
// x = this.seed;
// for(i = 1; i < n ; i++){
// x = ((x*this.a)+this.b)%this.m;
// uniforme[i] = x/this.m;
// }
// return uniforme;
// };
this.getRandom = function(){
x = ((this.x*this.a)+this.b)%this.m;
this.x = x;
this.u = this.x/this.m;
return this.u;
};
}
//unifCont = new RVUniformC(100000000)
function scanDataFolder(){
$.ajax({
type: 'GET',
url: twjs+'php/DirScan_main.php',
//data: "type="+type+"&query="+jsonparams,
//contentType: "application/json",
//dataType: 'json',
success : function(data){
console.log(data);
dataFolderTree=data;
},
error: function(){
console.log('Page Not found: updateLeftPanel_uni()');
}
});
}
function getGexfPath(v){
gexfpath=(gexfDictReverse[v])?gexfDictReverse[v]:v;
return gexfpath;
}
function getGexfLegend(gexfPath){
legend=(gexfDict[gexfPath])?gexfDict[gexfPath]:gexfPath;
return legend;
}
function jsActionOnGexfSelector(gexfLegend){
window.location=window.location.origin+window.location.pathname+"?file="+encodeURIComponent(getGexfPath(gexfLegend));
}
function listGexfs(){
divlen=$("#gexf").length;
if(divlen>0) {
param = JSON.stringify(gexfDict);
$.ajax({
type: 'GET',
url: twjs+'php/listFiles.php',
//contentType: "application/json",
//dataType: 'json',
success : function(data){
html="<select style='width:150px;' ";
javs='onchange="'+'jsActionOnGexfSelector(this.value);'+'"';
html+=javs;
html+=">";
html+='<option selected>[Select your Graph]</option>';
for(var i in data){
//pr("path: "+data[i]);
//pr("legend: "+getGexfLegend(data[i]));
//pr("");
html+="<option>"+getGexfLegend(data[i])+"</option>";
}
html+="</select>";
$("#gexfs").html(html);
},
error: function(){
console.log("Page Not found.");
}
});
}
}
This diff is collapsed.
#!/bin/bash
#
find . -name '*~' -delete
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment