Commit ba5dcb67 authored by PkSM3's avatar PkSM3

update

parent 86aed139
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
/**
* @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
File mode changed from 100644 to 100755
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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
File mode changed from 100644 to 100755
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
This diff is collapsed.
File mode changed from 100644 to 100755
;(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);
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
File mode changed from 100644 to 100755
...@@ -6,12 +6,19 @@ ...@@ -6,12 +6,19 @@
var geomap=false; var geomap=false;
var minimap=false; var minimap=false;
var getAdditionalInfo=false;//for topPapers div var getAdditionalInfo=false;//for topPapers div
var mainfile=encodeURIComponent("data/CSLbibraph.gexf");//"2-Terms-Authors-300nodes.gexf"; var mainfile=false;
var dataFolderTree = {}; var dataFolderTree = {};
var gexfDict={}; var gexfDict={};
//gexfDict["data/the.gexf"]="The characteristic name"; var egonode = {}
gexfDict={}; var iwantograph = "";
//gexfDict["data/nci/NCI350_all.gexf"]="NCI 2013 - Landscape";
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=""; ircNick="";
...@@ -20,11 +27,16 @@ ircCHN=""; ...@@ -20,11 +27,16 @@ ircCHN="";
var catSoc = "Document"; var catSoc = "Document";
var catSem = "NGram"; var catSem = "NGram";
var sizeMult = [];
sizeMult[catSoc] = 0.0;
sizeMult[catSem] = 0.0;
var inactiveColor = '#666'; var inactiveColor = '#666';
var startingNodeId = "1"; var startingNodeId = "1";
var minLengthAutoComplete = 1; var minLengthAutoComplete = 1;
var maxSearchResults = 10; var maxSearchResults = 10;
var strSearchBar = "Search"; var strSearchBar = "Search";
var cursor_size_min= 0; var cursor_size_min= 0;
var cursor_size= 0; var cursor_size= 0;
var cursor_size_max= 100; var cursor_size_max= 100;
...@@ -32,7 +44,7 @@ var cursor_size_max= 100; ...@@ -32,7 +44,7 @@ var cursor_size_max= 100;
var desirableTagCloudFont_MIN=12; var desirableTagCloudFont_MIN=12;
var desirableTagCloudFont_MAX=20; var desirableTagCloudFont_MAX=20;
var desirableNodeSizeMIN=1; var desirableNodeSizeMIN=1;
var desirableNodeSizeMAX=9; var desirableNodeSizeMAX=12;
var desirableScholarSize=6; //Remember that all scholars have the same size! var desirableScholarSize=6; //Remember that all scholars have the same size!
/* /*
...@@ -40,36 +52,40 @@ var desirableScholarSize=6; //Remember that all scholars have the same size! ...@@ -40,36 +52,40 @@ var desirableScholarSize=6; //Remember that all scholars have the same size!
* - true: fa2 running at start * - true: fa2 running at start
* - false: fa2 stopped at start, button exists * - false: fa2 stopped at start, button exists
* - "off": button doesn't exist, fa2 stopped forever * - "off": button doesn't exist, fa2 stopped forever
**/ **/ var fa2enabled=false;//"off";
var fa2enabled="off"; var stopcriteria = false;
var iterationsFA2=1000;
var seed=999999999;//defaultseed
var semanticConverged=false;
var showLabelsIfZoom=2.0; var showLabelsIfZoom=2.0;
// ============ < SIGMA.JS PROPERTIES > ============ var greyColor = "#9b9e9e";
var desirableNodeSizeMIN=1;
var desirableNodeSizeMAX=9; // ============ < SIGMA.JS PROPERTIES > ============
var desirableScholarSize=6; //Remember that all scholars have the same size!
var sigmaJsDrawingProperties = {
var sigmaJsDrawingProperties = { defaultLabelColor: 'black',
defaultLabelColor: 'black', defaultLabelSize: 10,//in fact I'm using it as minLabelSize'
defaultLabelSize: 10,//in fact I'm using it as minLabelSize' defaultLabelBGColor: '#fff',
defaultLabelBGColor: '#fff', defaultLabelHoverColor: '#000',
defaultLabelHoverColor: '#000', labelThreshold: 6,
labelThreshold: 6, defaultEdgeType: 'curve',
defaultEdgeType: 'curve',
borderSize: 2.5,//Something other than 0
borderSize: 2.5,//Something other than 0 nodeBorderColor: "default",//exactly like this
nodeBorderColor: "default",//exactly like this defaultNodeBorderColor: "black"//,//Any color of your choice
defaultNodeBorderColor: "black"//,//Any color of your choice //defaultBorderView: "always"
//defaultBorderView: "always" };
}; var sigmaJsGraphProperties = {
var sigmaJsGraphProperties = { minEdgeSize: 2,
minEdgeSize: 2, maxEdgeSize: 2
maxEdgeSize: 2 };
}; var sigmaJsMouseProperties = {
var sigmaJsMouseProperties = { minRatio:0.1,
minRatio:0.1, maxRatio: 15
maxRatio: 100 };
}; // ============ < / SIGMA.JS PROPERTIES > ============
// ============ < / SIGMA.JS PROPERTIES > ============
// ============ < / DEVELOPER OPTIONS > ============ // ============ < / DEVELOPER OPTIONS > ============
...@@ -80,7 +96,6 @@ var showLabelsIfZoom=2.0; ...@@ -80,7 +96,6 @@ var showLabelsIfZoom=2.0;
//"http://webchat.freenode.net/?nick=Ademe&channels=#anoe" //"http://webchat.freenode.net/?nick=Ademe&channels=#anoe"
var ircUrl="http://webchat.freenode.net/?nick="+ircNick+"&channels="+ircCHN; var ircUrl="http://webchat.freenode.net/?nick="+ircNick+"&channels="+ircCHN;
var twjs="tinawebJS/"; var twjs="tinawebJS/";
//var iterationsFA2=6;
var categories = {}; var categories = {};
var categoriesIndex = []; var categoriesIndex = [];
...@@ -89,13 +104,33 @@ var gexf; ...@@ -89,13 +104,33 @@ var gexf;
var checkBox=false; var checkBox=false;
var overNodes=false; var overNodes=false;
var shift_key=false;
var NOW="A";
var PAST="--";
var swclickActual=""; var swclickActual="";
var swclickPrev=""; var swclickPrev="";
var swMacro=true;
var socsemFlag=false; var socsemFlag=false;
var constantNGramFilter; 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 overviewWidth = 200;
var overviewHeight = 175; var overviewHeight = 175;
...@@ -104,6 +139,7 @@ var overviewHover=false; ...@@ -104,6 +139,7 @@ var overviewHover=false;
var moveDelay = 80, zoomDelay = 2; var moveDelay = 80, zoomDelay = 2;
//var Vecindad; //var Vecindad;
var partialGraph; var partialGraph;
var otherGraph;
var Nodes = []; var Nodes = [];
var Edges = []; var Edges = [];
...@@ -113,8 +149,6 @@ var labels = []; ...@@ -113,8 +149,6 @@ var labels = [];
var numberOfDocs=0; var numberOfDocs=0;
var numberOfNGrams=0; var numberOfNGrams=0;
var semanticConverged=0;
var socialConverged=0;
var selections = []; var selections = [];
var deselections={}; var deselections={};
...@@ -147,22 +181,31 @@ for (var i in gexfDict){ ...@@ -147,22 +181,31 @@ for (var i in gexfDict){
gexfDictReverse[gexfDict[i]]=i; gexfDictReverse[gexfDict[i]]=i;
} }
var opts = { 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"];
lines: 13, // The number of lines to draw
length: 20, // The length of each line var RVUniformC = function(seed){
width: 10, // The line thickness this.a=16807;
radius: 30, // The radius of the inner circle this.b=0;
corners: 1, // Corner roundness (0..1) this.m=2147483647;
rotate: 0, // The rotation offset this.u;
direction: 1, // 1: clockwise, -1: counterclockwise this.seed=seed;
color: '#000', // #rgb or #rrggbb or array of colors this.x = this.seed;
speed: 1, // Rounds per second // this.generar = function(n){
trail: 60, // Afterglow percentage // uniforme = [];
shadow: false, // Whether to render a shadow // x = 0.0;
hwaccel: false, // Whether to use hardware acceleration // x = this.seed;
className: 'spinner', // The CSS class to assign to the spinner // for(i = 1; i < n ; i++){
zIndex: 2e9, // The z-index (defaults to 2000000000) // x = ((x*this.a)+this.b)%this.m;
top: 'auto', // Top position relative to parent in px // uniforme[i] = x/this.m;
left: 'auto' // Left position relative to parent in px // }
}; // return uniforme;
// ============ < / VARIABLES.JS > ============ // };
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)
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