Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
se inyecta el service userService en el controlador para que se tenga acceso
function userController(userService){ //binding del controlador con el html, solo en el controlador var vm = this; vm.btnadd = true; vm.btnedit = false; vm.getUsers ={}; vm.btnadd = true; vm.btnedit = false; loadUsers(); function loadUsers(){ userService.getUsers().then(function (response) { vm.getUsers = response.data; }); } vm.save= function(form){ var newUser ={ firstName : vm.firstName, lastName : vm.lastName, email : vm.email, password: vm.password } userService.setUsers(newUser).success(function(data){ console.log(data); vm.firstName = null; vm.lastName = null; vm.email = null; vm.password = null; }); vm.delete = function(id){ console.log(id); userService.deleteUsers(id) .success(function(data){ init(); }) } vm.firstName = null; console.log(newUser); } vm.showInfoUpdate = function(pobjUser){ vm.btnadd = false; vm.btnedit = true; vm.id = pobjUser._id; vm.firstName = pobjUser.firstName; vm.lastName = pobjUser.lastName; vm.email = pobjUser.email; vm.password = pobjUser.password; vm.btnedit } vm.update = function(){ var newUser ={ _id: vm.id, firstName : vm.firstName, lastName : vm.lastName, email : vm.email, password: vm.password } userService.updateUsers(newUser).then(function (response) { loadUsers(); vm.btnadd = true; vm.btnedit = false; vm.firstName = null; vm.lastName = null; vm.email = null; vm.password = null; }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor( userService ) {\n\n\t\tthis._userService = userService;\n\n\t}", "constructor(userService) {\n this.userService = userService;\n }", "function UserService(){\n this._user = null;\n this._teamMembers = null;\n this._teamMemberHash = null;\n this._myChannels =...
[ "0.6931614", "0.6865851", "0.6809308", "0.6574526", "0.63400227", "0.6241768", "0.62259805", "0.61825377", "0.617396", "0.6089219", "0.6063498", "0.6060974", "0.59906185", "0.59853965", "0.5963784", "0.5960602", "0.5955993", "0.5848781", "0.5842202", "0.5836052", "0.5833177",...
0.0
-1
PATH FINDING SOLUTION UTILITY FUNCTIONS
function isSafe(x, y) { if (x >= 0 && x < tileRowCount && y >= 0 && y < tileColumnCount && (tiles[x][y].state != 'w')) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function find_path(path) {\n gdir.forEach(it =>{\n if (it.path == path) return it;\n })\n}", "resolveAsPath() { }", "function search_paths(thing_to_find, explicit_path, env_name)\n{\n\tvar i, found = false, place = false, file, env;\n\n\tSTDOUT.Write(\"Checking for \" + thing_to_find + \" ... \");\n\n\tth...
[ "0.678875", "0.66475016", "0.6599981", "0.6467697", "0.6325281", "0.6325281", "0.6325281", "0.63150996", "0.63035446", "0.63035446", "0.63035446", "0.63035446", "0.63035446", "0.62470496", "0.6227704", "0.61758745", "0.6175053", "0.6175053", "0.6175053", "0.6175053", "0.61750...
0.0
-1
populates the list of selectable pages, binds left and right arrow keys
function setupNav() { setupPageSelector(); setupRecipeSelector(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_pageDownKeyHandler(items) {\n const that = this;\n\n if (items.length === 0) {\n return;\n }\n\n let selectedItem = that._items[that.selectedIndexes[that.selectedIndexes.length - 1]];\n if (that.selectionMode === 'checkBox' || that.selectionMode === 'radioButton' || t...
[ "0.62902904", "0.5980301", "0.5952238", "0.59236085", "0.59136075", "0.5893289", "0.5869571", "0.5727391", "0.5709156", "0.56394076", "0.563156", "0.5612666", "0.5563152", "0.5561742", "0.5559075", "0.55450535", "0.5539738", "0.5535373", "0.5534586", "0.5516891", "0.5491114",...
0.0
-1
updates the image when the new page is selected
function goToPage() { var index = document.getElementById("page-select").value; setPage(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changePic() {\n\t\t\t\tif (active[0].complete) {\n\t\t\t\t\tgo();\n\t\t\t\t} else {\n\t\t\t\t\tactive.load(go);\n\t\t\t\t}\n\n\t\t\t\tfunction go() {\n\t\t\t\t\tvar l = active.offset().left - pc.offset().left - (w - active.width())/2;\n\n\t\t\t\t\tpics.removeClass('active');\n\t\t\t\t\tactive.addClass('ac...
[ "0.6561474", "0.65164953", "0.6236665", "0.62253636", "0.6218048", "0.6192383", "0.6180553", "0.6156408", "0.6141292", "0.6119783", "0.61119276", "0.61114395", "0.60984164", "0.60976243", "0.6081594", "0.6041386", "0.60325146", "0.6027812", "0.6023694", "0.6009566", "0.600486...
0.0
-1
moves to the next page
function nextPage() { var pageSelector = document.getElementById("page-select"); if (pageSelector.value < MAX_PAGE) { pageSelector.value++; goToPage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nextPage(){\n if (page > 0)\n {\n setPage( page +1);\n }\n }", "function goToNextPage() {\n\t\tif ( canNextPage() ) {\n\t\t\tgoToPage( currentPage() + 1 );\n\t\t}\n\t}", "function goToNextPage() {\n updateCurrentPage((page) => page + 1);\n }", "function m...
[ "0.8286269", "0.81938106", "0.8174445", "0.8059553", "0.79495794", "0.7863814", "0.7845795", "0.78286576", "0.78050923", "0.7772839", "0.77267015", "0.7713606", "0.7697638", "0.76754385", "0.76542354", "0.75919574", "0.7553737", "0.7550201", "0.754454", "0.74886614", "0.74708...
0.0
-1
moves to the previous page
function previousPage() { var pageSelector = document.getElementById("page-select"); if (pageSelector.value > MIN_PAGE) { pageSelector.value--; goToPage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function previousPage(){\n if (page > 1)\n {\n setPage(page - 1);\n }\n else {\n // do nothing\n }\n }", "goToPrevious() {\n if (this.history.getPagesCount()) {\n this.transition = this.history.getCurrentPage().transition;\n ...
[ "0.87325746", "0.8708556", "0.86386013", "0.8582568", "0.8521822", "0.8494483", "0.8482488", "0.84575725", "0.8421222", "0.8325483", "0.83142096", "0.8232343", "0.8212379", "0.81850654", "0.81702614", "0.8154749", "0.8154749", "0.8143742", "0.811444", "0.80831075", "0.8067864...
0.71526676
92
Genetic Algorithm, Evolbing Shakespeare need to describe pseudoDNA For this example, a virtual organism's DNA is an array of characters Functionality: convert DNA into a string calculate DNA's 'fitness' mate DNA with another set of DNA mutate DNA generate a new character within the proper range of ASCI values
function newChar() { var c = floor(random(63, 122)) if (c == 63) c = 32; if (c == 64) c = 46; return String.fromCharCode(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DNA(num) {\n this.genes = [];\n this.fitness = 0;\n\n for (var i = 0; i < num; i++) {\n this.genes[i] = newChar();\n }\n\n // converts genes array to string\n this.getPhrase = function() {\n return this.genes.join(\"\");\n }\n\n //Fitness function\n //returns: floating point percentage of c...
[ "0.7410392", "0.659812", "0.65123284", "0.636162", "0.63237715", "0.62390846", "0.62288696", "0.5978337", "0.59758407", "0.59683096", "0.5925095", "0.58526045", "0.5846255", "0.5834534", "0.5830244", "0.57819855", "0.5764968", "0.5764954", "0.57623315", "0.57372314", "0.57071...
0.0
-1
Constructor (make random DNA)
function DNA(num) { this.genes = []; this.fitness = 0; for (var i = 0; i < num; i++) { this.genes[i] = newChar(); } // converts genes array to string this.getPhrase = function() { return this.genes.join(""); } //Fitness function //returns: floating point percentage of correct characters this.calcFitness = function(target) { var score = 0; for (var i = 0; i < this.genes.length; i++) { if (this.genes[i] == target.charAt(i)) { score++ } } this.fitness = score / target.length; } // Combine two members of the population together // currently uses a random midpoint for the two (can be changed) this.crossover = function(partner) { //create new child var child = new DNA(this.genes.length); // pick a midpoint var midpoint = floor(random(this.genes.length)); //combine the two for (var i = 0; i < this.genes.length; i++) { if (i > midpoint) { child.genes[i] = this.genes[i]; } else { child.genes[i] = partner.genes[i] } } return child; } //Based on a mutation probability, pick a new random character this.mutate = function(mutationRate) { for (var i = 0; i < this.genes.length; i++) { if (random(1) < mutationRate) { this.genes[i] = newChar(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DNA() {\n // DNA is random floating point values between 0 and 1 (!!)\n genes = new float[len];\n for (int i = 0; i < genes.length; i++) {\n genes[i] = random(0,1);\n }\n }", "newInstance(dna) {\n\n let newInd = new Individual(this.dnaLength, this.fitnessEvaluator);\n\n if (dna) {...
[ "0.7575269", "0.7436963", "0.7315295", "0.7065569", "0.69736093", "0.69685584", "0.6789824", "0.6544906", "0.65324193", "0.64406323", "0.6311245", "0.62901974", "0.61763567", "0.61757404", "0.61177367", "0.60723156", "0.60250056", "0.5982852", "0.5952094", "0.5944806", "0.592...
0.7364938
2
a constructor with initial set states
constructor(props){ super(props); // button display state var emptyArray = []; for (let i=0;i<7;i++) emptyArray[i] = {weekday:"",rain:"",temp:"",cloud_c :""}; this.setState( { daily : emptyArray }); //define everything in order to not get further errors in the components console.log(countrySetUp +"/"+locationSetUp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "initializer () {\n this._state = \"dead\"\n this._num2state = []\n this._state2num = {}\n this._groups = []\n this.transitions([\n { state: \"dead\", enter: null, leave: null },\n { state: \"booted\", enter: \"boot\", leave: \"shutdown\...
[ "0.71831524", "0.7147491", "0.70717824", "0.6911041", "0.6869467", "0.67995924", "0.6786003", "0.6764576", "0.67166895", "0.6687431", "0.6583309", "0.6566986", "0.6562025", "0.6561802", "0.6561802", "0.6561802", "0.6561802", "0.6561802", "0.6561802", "0.6561802", "0.65488917"...
0.0
-1
Post a new tweet
postTweet(){ rl.question('Have a tweet in mind?: ', (answer) => { twi.post('statuses/update', { status: answer }, function(err, data, response) { console.log(data) }); rl.close(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeTweet(mytweet) {\r\n\r\n console.log('Atttempting Tweet...');\r\n // .post takes an object as input\r\n var tweet = {\r\n status: mytweet\r\n\r\n };\r\n // if (tweet.status) {\r\n console.log(\"posting......\");\r\n console.log(\"status to be posted: \" + tweet.status);\...
[ "0.7792504", "0.76760966", "0.749763", "0.7432929", "0.7396335", "0.73760307", "0.7368896", "0.7364732", "0.72297233", "0.72031325", "0.7117982", "0.70900565", "0.70847607", "0.70619404", "0.7006358", "0.69586724", "0.6943105", "0.6942627", "0.6911418", "0.68629867", "0.68519...
0.7281273
8
Get followers of a particular user
getFollowers(){ rl.question('Input a twitter handle to get the followers of the respective user: ', (answer) => { twi.get('followers/id', { screen_name: answer }, function(err, data, response) { console.log(data) }); rl.close(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFollowersForUser(username){\n var deferred = q.defer();\n return Followers.findOne({\"username\": username}, function (error, response) {\n if(error)\n deferred.reject(error);\n else\n deferred.resolve(response);\n });\n re...
[ "0.79812974", "0.794279", "0.7832295", "0.77346206", "0.7608506", "0.75892377", "0.75542253", "0.7548107", "0.7448648", "0.7441564", "0.74001753", "0.7395615", "0.7348532", "0.7316925", "0.72858983", "0.7265759", "0.7239499", "0.72350955", "0.72257435", "0.7192311", "0.715980...
0.71793675
20
Pano2VR 6.1.10/18007 Filename: map.ggsk Generated 20210426T01:44:05
function pano2vrSkin(player,base) { player.addVariable('appear', 2, false); player.addVariable('open_tag', 0, ""); player.addVariable('close_nodes', 2, false); player.addVariable('category_visible', 2, false); player.addVariable('category_follow', 2, true); player.addVariable('vis_map', 2, true); player.addVariable('vis_map_close_desktop', 2, true); player.addVariable('vis_map_close_mobile', 2, true); player.addVariable('opt_hotspot_preview', 2, true); player.addVariable('opt_hotspot_preview_1', 2, true); var me=this; var skin=this; var flag=false; var hotspotTemplates={}; var skinKeyPressed = 0; this.player=player; this.player.skinObj=this; this.divSkin=player.divSkin; this.ggUserdata=player.userdata; this.lastSize={ w: -1,h: -1 }; var basePath=""; // auto detect base path if (base=='?') { var scripts = document.getElementsByTagName('script'); for(var i=0;i<scripts.length;i++) { var src=scripts[i].src; if (src.indexOf('skin.js')>=0) { var p=src.lastIndexOf('/'); if (p>=0) { basePath=src.substr(0,p+1); } } } } else if (base) { basePath=base; } this.elementMouseDown=[]; this.elementMouseOver=[]; var cssPrefix=''; var domTransition='transition'; var domTransform='transform'; var prefixes='Webkit,Moz,O,ms,Ms'.split(','); var i; var hs,el,els,elo,ela,elHorScrollFg,elHorScrollBg,elVertScrollFg,elVertScrollBg,elCornerBg; if (typeof document.body.style['transform'] == 'undefined') { for(var i=0;i<prefixes.length;i++) { if (typeof document.body.style[prefixes[i] + 'Transform'] !== 'undefined') { cssPrefix='-' + prefixes[i].toLowerCase() + '-'; domTransition=prefixes[i] + 'Transition'; domTransform=prefixes[i] + 'Transform'; } } } player.setMargins(0,0,0,0); this.updateSize=function(startElement) { var stack=[]; stack.push(startElement); while(stack.length>0) { var e=stack.pop(); if (e.ggUpdatePosition) { e.ggUpdatePosition(); } if (e.hasChildNodes()) { for(var i=0;i<e.childNodes.length;i++) { stack.push(e.childNodes[i]); } } } } this.callNodeChange=function(startElement) { var stack=[]; stack.push(startElement); while(stack.length>0) { var e=stack.pop(); if (e.ggNodeChange) { e.ggNodeChange(); } if (e.hasChildNodes()) { for(var i=0;i<e.childNodes.length;i++) { stack.push(e.childNodes[i]); } } } } player.addListener('changenode', function() { me.ggUserdata=player.userdata; me.callNodeChange(me.divSkin); }); var parameterToTransform=function(p) { var hs='translate(' + p.rx + 'px,' + p.ry + 'px) rotate(' + p.a + 'deg) scale(' + p.sx + ',' + p.sy + ')'; return hs; } this.findElements=function(id,regex) { var r=[]; var stack=[]; var pat=new RegExp(id,''); stack.push(me.divSkin); while(stack.length>0) { var e=stack.pop(); if (regex) { if (pat.test(e.ggId)) r.push(e); } else { if (e.ggId==id) r.push(e); } if (e.hasChildNodes()) { for(var i=0;i<e.childNodes.length;i++) { stack.push(e.childNodes[i]); } } } return r; } this.addSkin=function() { var hs=''; this.ggCurrentTime=new Date().getTime(); el=me._menu_background=document.createElement('div'); el.ggId="menu_background"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.501961);'; hs+='border : 1px solid #000000;'; hs+='cursor : default;'; hs+='height : 100%;'; hs+='position : absolute;'; hs+='right : 0px;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 178px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._menu_background.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._menu_background.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('category_visible') == false)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._menu_background.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._menu_background.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._menu_background.style[domTransition]='opacity 500ms ease 0ms'; if (me._menu_background.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._menu_background.style.opacity == 0.0) { me._menu_background.style.visibility="hidden"; } }, 505); me._menu_background.style.opacity=0; } else { me._menu_background.style.visibility=me._menu_background.ggVisible?'inherit':'hidden'; me._menu_background.style.opacity=1; } } } me._menu_background.ggUpdatePosition=function (useTransition) { } el=me._category_scroller=document.createElement('div'); els=me._category_scroller__content=document.createElement('div'); els.className='ggskin ggskin_subelement ggskin_scrollarea'; el.ggContent=els; el.appendChild(els); el.ggHorScrollVisible = false; el.ggVertScrollVisible = false; el.ggContentLeftOffset = 0; el.ggContentTopOffset = 0; el.ggDragInertiaX = 0; el.ggDragInertiaY = 0; el.ggVPercentVisible = 1.0; el.ggHPercentVisible = 1.0; hs =''; hs+='height : 134px;'; hs+='left : 0px;'; hs+='overflow : visible;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='width : 154px;'; hs+=""; els.setAttribute('style',hs); me._category_scroller.ggScrollByX = function(diffX) { if(!me._category_scroller.ggHorScrollVisible || diffX == 0 || me._category_scroller.ggHPercentVisible >= 1.0) return; me._category_scroller.ggScrollPosX = (me._category_scroller__horScrollFg.offsetLeft + diffX); me._category_scroller.ggScrollPosX = Math.max(me._category_scroller.ggScrollPosX, 0); me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; me._category_scroller__content.style.left = -(Math.round(me._category_scroller.ggScrollPosX / me._category_scroller.ggHPercentVisible)) + me._category_scroller.ggContentLeftOffset + 'px'; me._category_scroller.ggScrollPosXPercent = (me._category_scroller__horScrollFg.offsetLeft / me._category_scroller__horScrollBg.offsetWidth); } me._category_scroller.ggScrollByXSmooth = function(diffX) { if(!me._category_scroller.ggHorScrollVisible || diffX == 0 || me._category_scroller.ggHPercentVisible >= 1.0) return; var scrollPerInterval = diffX / 25; var scrollCurrX = 0; var id = setInterval(function() { scrollCurrX += scrollPerInterval; me._category_scroller.ggScrollPosX += scrollPerInterval; if (diffX > 0 && (scrollCurrX >= diffX || me._category_scroller.ggScrollPosX >= me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth)) { me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); clearInterval(id); } if (diffX < 0 && (scrollCurrX <= diffX || me._category_scroller.ggScrollPosX <= 0)) { me._category_scroller.ggScrollPosX = Math.max(me._category_scroller.ggScrollPosX, 0); clearInterval(id); } me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; me._category_scroller__content.style.left = -(Math.round(me._category_scroller.ggScrollPosX / me._category_scroller.ggHPercentVisible)) + me._category_scroller.ggContentLeftOffset + 'px'; me._category_scroller.ggScrollPosXPercent = (me._category_scroller__horScrollFg.offsetLeft / me._category_scroller__horScrollBg.offsetWidth); }, 10); } me._category_scroller.ggScrollByY = function(diffY) { if(!me._category_scroller.ggVertScrollVisible || diffY == 0 || me._category_scroller.ggVPercentVisible >= 1.0) return; me._category_scroller.ggScrollPosY = (me._category_scroller__vertScrollFg.offsetTop + diffY); me._category_scroller.ggScrollPosY = Math.max(me._category_scroller.ggScrollPosY, 0); me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; me._category_scroller__content.style.top = -(Math.round(me._category_scroller.ggScrollPosY / me._category_scroller.ggVPercentVisible)) + me._category_scroller.ggContentTopOffset + 'px'; me._category_scroller.ggScrollPosYPercent = (me._category_scroller__vertScrollFg.offsetTop / me._category_scroller__vertScrollBg.offsetHeight); } me._category_scroller.ggScrollByYSmooth = function(diffY) { if(!me._category_scroller.ggVertScrollVisible || diffY == 0 || me._category_scroller.ggVPercentVisible >= 1.0) return; var scrollPerInterval = diffY / 25; var scrollCurrY = 0; var id = setInterval(function() { scrollCurrY += scrollPerInterval; me._category_scroller.ggScrollPosY += scrollPerInterval; if (diffY > 0 && (scrollCurrY >= diffY || me._category_scroller.ggScrollPosY >= me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight)) { me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); clearInterval(id); } if (diffY < 0 && (scrollCurrY <= diffY || me._category_scroller.ggScrollPosY <= 0)) { me._category_scroller.ggScrollPosY = Math.max(me._category_scroller.ggScrollPosY, 0); clearInterval(id); } me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; me._category_scroller__content.style.top = -(Math.round(me._category_scroller.ggScrollPosY / me._category_scroller.ggVPercentVisible)) + me._category_scroller.ggContentTopOffset + 'px'; me._category_scroller.ggScrollPosYPercent = (me._category_scroller__vertScrollFg.offsetTop / me._category_scroller__vertScrollBg.offsetHeight); }, 10); } me._category_scroller.ggScrollIntoView = function(posX, posY, width, height) { if (me._category_scroller.ggHorScrollVisible) { if (posX < 0) { var diffX = Math.floor(posX * me._category_scroller.ggHPercentVisible); me._category_scroller.ggScrollByXSmooth(diffX); } else if (posX + width > me._category_scroller.offsetWidth - (me._category_scroller.ggVertScrollVisible ? 15 : 0)) { var diffX = Math.ceil(((posX + width) - (me._category_scroller.offsetWidth - (me._category_scroller.ggVertScrollVisible ? 15 : 0))) * me._category_scroller.ggHPercentVisible); me._category_scroller.ggScrollByXSmooth(diffX); } } if (me._category_scroller.ggVertScrollVisible) { if (posY < 0) { var diffY = Math.floor(posY * me._category_scroller.ggVPercentVisible); me._category_scroller.ggScrollByYSmooth(diffY); } else if (posY + height > me._category_scroller.offsetHeight - (me._category_scroller.ggHorScrollVisible ? 15 : 0)) { var diffY = Math.ceil(((posY + height) - (me._category_scroller.offsetHeight - (me._category_scroller.ggHorScrollVisible ? 15 : 0))) * me._category_scroller.ggVPercentVisible); me._category_scroller.ggScrollByYSmooth(diffY); } } } els.ontouchstart = function(e) { e = e || window.event; var t = e.touches; me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; me._category_scroller__content.ontouchend = function() { let inertiaInterval = setInterval(function() { me._category_scroller.ggDragInertiaX *= 0.65; me._category_scroller.ggDragInertiaY *= 0.65; me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0 && Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { clearInterval(inertiaInterval); } }, 50); me._category_scroller__content.ontouchend = null; me._category_scroller__content.ontouchmove = null; me._category_scroller__content.onpointerup = null; me._category_scroller__content.onpointermove = null; } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { me._category_scroller__content.onpointerup = me._category_scroller__content.ontouchend; } me._category_scroller__content.ontouchmove = function(e) { e = e || window.event; e.preventDefault(); var t = e.touches; var diffX = ((t ? t[0].clientX : e.clientX) - me._category_scroller.ggDragLastX) * me._category_scroller.ggHPercentVisible; var diffY = ((t ? t[0].clientY : e.clientY) - me._category_scroller.ggDragLastY) * me._category_scroller.ggVPercentVisible; me._category_scroller.ggDragInertiaX = -diffX; me._category_scroller.ggDragInertiaY = -diffY; me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; me._category_scroller.ggScrollByX(-diffX); me._category_scroller.ggScrollByY(-diffY); } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { me._category_scroller__content.onpointermove = me._category_scroller__content.ontouchmove; } } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { els.onpointerdown = els.ontouchstart; } elHorScrollBg = me._category_scroller__horScrollBg = document.createElement('div'); el.appendChild(elHorScrollBg); elHorScrollBg.setAttribute('style', 'position: absolute; left: 0px; bottom: 0px; visibility: hidden; width: 178px; height: 15px; background-color: rgba(128,128,128,1); pointer-events: auto;'); elHorScrollBg.className='ggskin ggskin_scrollarea_hscrollbg'; elHorScrollFg = me._category_scroller__horScrollFg = document.createElement('div'); elHorScrollBg.appendChild(elHorScrollFg); elHorScrollFg.className='ggskin ggskin_scrollarea_hscrollfg'; elHorScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 178px; height: 15px; background-color: rgba(192,192,192,1); pointer-events: auto;'); me._category_scroller.ggScrollPosX = 0; me._category_scroller.ggScrollPosXPercent = 0.0; elHorScrollFg.onmousedown = function(e) { if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; e = e || window.event; e.preventDefault(); e.stopPropagation(); me._category_scroller.ggDragLastX = e.clientX; document.onmouseup = function() { let inertiaInterval = setInterval(function() { me._category_scroller.ggDragInertiaX *= 0.65; me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0) { clearInterval(inertiaInterval); } }, 50); document.onmouseup = null; document.onmousemove = null; } document.onmousemove = function(e) { e = e || window.event; e.preventDefault(); var diffX = e.clientX - me._category_scroller.ggDragLastX; me._category_scroller.ggDragInertiaX = diffX; me._category_scroller.ggDragLastX = e.clientX; me._category_scroller.ggScrollByX(diffX); } } elHorScrollFg.ontouchstart = function(e) { e = e || window.event; e.preventDefault(); e.stopPropagation(); var t = e.touches; me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; document.ontouchend = function() { let inertiaInterval = setInterval(function() { me._category_scroller.ggDragInertiaX *= 0.65; me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0) { clearInterval(inertiaInterval); } }, 50); document.ontouchend = null; document.ontouchmove = null; document.onpointerup = null; document.onpointermove = null; } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { document.onpointerup = document.ontouchend; } document.ontouchmove = function(e) { e = e || window.event; e.preventDefault(); var t = e.touches; var diffX = (t ? t[0].clientX : e.clientX) - me._category_scroller.ggDragLastX; me._category_scroller.ggDragInertiaX = diffX; me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; me._category_scroller.ggScrollByX(diffX); } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { document.onpointermove = document.ontouchmove; } } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { elHorScrollFg.onpointerdown = elHorScrollFg.ontouchstart; } elHorScrollBg.onmousedown = function(e) { e = e || window.event; e.preventDefault(); var diffX = me._category_scroller.ggScrollWidth; if (e.offsetX < me._category_scroller.ggScrollPosX) { diffX = diffX * -1; } me._category_scroller.ggScrollByXSmooth(diffX); } elHorScrollBg.ontouchstart = function(e) { e = e || window.event; e.preventDefault(); e.stopPropagation(); var t = e.touches; var rect = me._category_scroller__horScrollBg.getBoundingClientRect(); var diffX = me._category_scroller.ggScrollWidth; if ((t[0].clientX - rect.left) < me._category_scroller.ggScrollPosX) { diffX = diffX * -1; } me._category_scroller.ggScrollByXSmooth(diffX); } el.addEventListener('wheel', function(e) { e.preventDefault(); var wheelDelta = Math.sign(e.deltaX); me._category_scroller.ggScrollByXSmooth(20 * wheelDelta); }); elVertScrollBg = me._category_scroller__vertScrollBg = document.createElement('div'); el.appendChild(elVertScrollBg); elVertScrollBg.setAttribute('style', 'position: absolute; right: 0px; top: 0px; visibility: hidden; width: 15px; height: 480px; background-color: rgba(128,128,128,1); pointer-events: auto;'); elVertScrollBg.className='ggskin ggskin_scrollarea_vscrollbg'; elVertScrollFg = me._category_scroller__vertScrollFg = document.createElement('div'); elVertScrollBg.appendChild(elVertScrollFg); elVertScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 15px; height: 480px; background-color: rgba(192,192,192,1); pointer-events: auto;'); elVertScrollFg.className='ggskin ggskin_scrollarea_vscrollfg'; me._category_scroller.ggScrollPosY = 0; me._category_scroller.ggScrollPosYPercent = 0.0; elVertScrollFg.onmousedown = function(e) { if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; e = e || window.event; e.preventDefault(); e.stopPropagation(); me._category_scroller.ggDragLastY = e.clientY; document.onmouseup = function() { let inertiaInterval = setInterval(function() { me._category_scroller.ggDragInertiaY *= 0.65; me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); if (Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { clearInterval(inertiaInterval); } }, 50); document.onmouseup = null; document.onmousemove = null; } document.onmousemove = function(e) { e = e || window.event; e.preventDefault(); var diffY = e.clientY - me._category_scroller.ggDragLastY; me._category_scroller.ggDragInertiaY = diffY; me._category_scroller.ggDragLastY = e.clientY; me._category_scroller.ggScrollByY(diffY); } } elVertScrollFg.ontouchstart = function(e) { e = e || window.event; e.preventDefault(); e.stopPropagation(); var t = e.touches; me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; document.ontouchend = function() { let inertiaInterval = setInterval(function() { me._category_scroller.ggDragInertiaY *= 0.65; me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); if (Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { clearInterval(inertiaInterval); } }, 50); document.ontouchend = null; document.ontouchmove = null; document.onpointerup = null; document.onpointermove = null; } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { document.onpointerup = document.ontouchend; } document.ontouchmove = function(e) { e = e || window.event; e.preventDefault(); var t = e.touches; var diffY = (t ? t[0].clientY : e.clientY) - me._category_scroller.ggDragLastY; me._category_scroller.ggDragInertiaY = diffY; me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; me._category_scroller.ggScrollByY(diffY); } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { document.onpointermove = document.ontouchmove; } } if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { elVertScrollFg.onpointerdown = elVertScrollFg.ontouchstart; } elVertScrollBg.onmousedown = function(e) { e = e || window.event; e.preventDefault(); var diffY = me._category_scroller.ggScrollHeight; if (e.offsetY < me._category_scroller.ggScrollPosY) { diffY = diffY * -1; } me._category_scroller.ggScrollByYSmooth(diffY); } elVertScrollBg.ontouchstart = function(e) { e = e || window.event; e.preventDefault(); e.stopPropagation(); var t = e.touches; var rect = me._category_scroller__vertScrollBg.getBoundingClientRect(); var diffY = me._category_scroller.ggScrollHeight; if ((t[0].clientY - rect.top) < me._category_scroller.ggScrollPosY) { diffY = diffY * -1; } me._category_scroller.ggScrollByYSmooth(diffY); } el.addEventListener('wheel', function(e) { e.preventDefault(); var wheelDelta = Math.sign(e.deltaY); me._category_scroller.ggScrollByYSmooth(20 * wheelDelta); }); elCornerBg = me._category_scroller__cornerBg = document.createElement('div'); el.appendChild(elCornerBg); elCornerBg.setAttribute('style', 'position: absolute; right: 0px; bottom: 0px; visibility: hidden; width: 15px; height: 15px; background-color: rgba(255,255,255,1);'); elCornerBg.className='ggskin ggskin_scrollarea_scrollcorner'; el.ggId="category_scroller"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_scrollarea "; el.ggType='scrollarea'; hs =''; hs+='border : 1px solid rgba(0, 0, 0, 0);'; hs+='height : calc(100% - 50px);'; hs+='left : 0px;'; hs+='overflow : hidden;'; hs+='position : absolute;'; hs+='top : 50px;'; hs+='visibility : inherit;'; hs+='width : 178px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._category_scroller.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._category_scroller.ggUpdatePosition=function (useTransition) { { var horScrollWasVisible = this.ggHorScrollVisible; var vertScrollWasVisible = this.ggVertScrollVisible; this.ggContent.style.left = '0px'; this.ggContent.style.top = '0px'; this.ggContentLeftOffset = 0; this.ggContentTopOffset = 0; var offsetWidthWithScale = this.getBoundingClientRect().width; var offsetHeightWithScale = this.getBoundingClientRect().height; var domRectContent = this.ggContent.getBoundingClientRect(); var minX = 0; var minY = 0; var maxX = 0; var maxY = 0; var stack=[]; stack.push(this.ggContent); while(stack.length>0) { var e=stack.pop(); if (e!=this.ggContent && e.getBoundingClientRect && e.style['display']!='none') { var domRectChild = e.getBoundingClientRect(); var diffX = domRectChild.left - domRectContent.left; minX = Math.min(minX, diffX); maxX = Math.max(maxX, diffX + domRectChild.width); var diffY = domRectChild.top - domRectContent.top; minY = Math.min(minY, diffY); maxY = Math.max(maxY, diffY + domRectChild.height); } if (e.hasChildNodes() && e.style['display']!='none') { for(var i=0;i<e.childNodes.length;i++) { stack.push(e.childNodes[i]); } } } if (minX < 0) this.ggContentLeftOffset = -minX; if (minY < 0) this.ggContentTopOffset = -minY; var contentWidth = maxX - minX; var contentHeight = maxY - minY; this.ggContent.style.left = this.ggContentLeftOffset + 'px'; this.ggContent.style.top = this.ggContentTopOffset + 'px'; this.ggContent.style.width = contentWidth + 'px'; this.ggContent.style.height = contentHeight + 'px'; this.ggContent.style.left = -(Math.round(me._category_scroller.ggScrollPosX / me._category_scroller.ggHPercentVisible)) + this.ggContentLeftOffset + 'px'; this.ggContent.style.marginLeft = '0px'; this.ggContent.style.top = -(Math.round(me._category_scroller.ggScrollPosY / me._category_scroller.ggVPercentVisible)) + this.ggContentTopOffset + 'px'; this.ggContent.style.marginTop = '0px'; if (contentWidth > Math.ceil(offsetWidthWithScale)) { me._category_scroller__horScrollBg.style.visibility = 'inherit'; me._category_scroller__horScrollFg.style.visibility = 'inherit'; me._category_scroller.ggHorScrollVisible = true; } else { me._category_scroller__horScrollBg.style.visibility = 'hidden'; me._category_scroller__horScrollFg.style.visibility = 'hidden'; me._category_scroller.ggHorScrollVisible = false; } if ((me._category_scroller.ggHorScrollVisible && contentHeight > this.offsetHeight - 15) || (!me._category_scroller.ggHorScrollVisible && contentHeight > this.offsetHeight)) { me._category_scroller__vertScrollBg.style.visibility = 'inherit'; me._category_scroller__vertScrollFg.style.visibility = 'inherit'; me._category_scroller.ggVertScrollVisible = true; if (!me._category_scroller.ggHorScrollVisible && (contentWidth > offsetWidthWithScale - me._category_scroller__vertScrollBg.getBoundingClientRect().width)) { me._category_scroller__horScrollBg.style.visibility = 'inherit'; me._category_scroller__horScrollFg.style.visibility = 'inherit'; me._category_scroller.ggHorScrollVisible = true; } } else { me._category_scroller__vertScrollBg.style.visibility = 'hidden'; me._category_scroller__vertScrollFg.style.visibility = 'hidden'; me._category_scroller.ggVertScrollVisible = false; } if(me._category_scroller.ggHorScrollVisible) { me._category_scroller.ggAvailableHeight = me._category_scroller.offsetHeight - 15; if (me._category_scroller.ggVertScrollVisible) { me._category_scroller.ggAvailableWidth = me._category_scroller.offsetWidth - 15; me._category_scroller.ggAvailableWidthWithScale = me._category_scroller.getBoundingClientRect().width - me._category_scroller__horScrollBg.getBoundingClientRect().height; } else { me._category_scroller.ggAvailableWidth = me._category_scroller.offsetWidth; me._category_scroller.ggAvailableWidthWithScale = me._category_scroller.getBoundingClientRect().width; } me._category_scroller__horScrollBg.style.width = me._category_scroller.ggAvailableWidth + 'px'; me._category_scroller.ggHPercentVisible = contentWidth != 0 ? me._category_scroller.ggAvailableWidthWithScale / contentWidth : 0.0; if (me._category_scroller.ggHPercentVisible > 1.0) me._category_scroller.ggHPercentVisible = 1.0; me._category_scroller.ggScrollWidth = Math.round(me._category_scroller__horScrollBg.offsetWidth * me._category_scroller.ggHPercentVisible); me._category_scroller__horScrollFg.style.width = me._category_scroller.ggScrollWidth + 'px'; me._category_scroller.ggScrollPosX = me._category_scroller.ggScrollPosXPercent * me._category_scroller.ggAvailableWidth; me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; if (me._category_scroller.ggHPercentVisible < 1.0) { me._category_scroller__content.style.left = -(Math.round(me._category_scroller.ggScrollPosX / me._category_scroller.ggHPercentVisible)) + this.ggContentLeftOffset + 'px'; } } else { me._category_scroller.ggAvailableHeight = me._category_scroller.offsetHeight; me._category_scroller.ggScrollPosX = 0; me._category_scroller.ggScrollPosXPercent = 0.0; me._category_scroller__content.style.left = this.ggContentLeftOffset + 'px'; } if(me._category_scroller.ggVertScrollVisible) { me._category_scroller.ggAvailableWidth = me._category_scroller.offsetWidth - 15; if (me._category_scroller.ggHorScrollVisible) { me._category_scroller.ggAvailableHeight = me._category_scroller.offsetHeight - 15; me._category_scroller.ggAvailableHeightWithScale = me._category_scroller.getBoundingClientRect().height - me._category_scroller__vertScrollBg.getBoundingClientRect().width; me._category_scroller__cornerBg.style.visibility = 'inherit'; } else { me._category_scroller.ggAvailableHeight = me._category_scroller.offsetHeight; me._category_scroller.ggAvailableHeightWithScale = me._category_scroller.getBoundingClientRect().height; me._category_scroller__cornerBg.style.visibility = 'hidden'; } me._category_scroller__vertScrollBg.style.height = me._category_scroller.ggAvailableHeight + 'px'; me._category_scroller.ggVPercentVisible = contentHeight != 0 ? me._category_scroller.ggAvailableHeightWithScale / contentHeight : 0.0; if (me._category_scroller.ggVPercentVisible > 1.0) me._category_scroller.ggVPercentVisible = 1.0; me._category_scroller.ggScrollHeight = Math.round(me._category_scroller__vertScrollBg.offsetHeight * me._category_scroller.ggVPercentVisible); me._category_scroller__vertScrollFg.style.height = me._category_scroller.ggScrollHeight + 'px'; me._category_scroller.ggScrollPosY = me._category_scroller.ggScrollPosYPercent * me._category_scroller.ggAvailableHeight; me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; if (me._category_scroller.ggVPercentVisible < 1.0) { me._category_scroller__content.style.top = -(Math.round(me._category_scroller.ggScrollPosY / me._category_scroller.ggVPercentVisible)) + this.ggContentTopOffset + 'px'; } } else { me._category_scroller.ggAvailableWidth = me._category_scroller.offsetWidth; me._category_scroller.ggScrollPosY = 0; me._category_scroller.ggScrollPosYPercent = 0.0; me._category_scroller__content.style.top = this.ggContentTopOffset + 'px'; me._category_scroller__cornerBg.style.visibility = 'hidden'; } if(horScrollWasVisible != me._category_scroller.ggHorScrollVisible || vertScrollWasVisible != me._category_scroller.ggVertScrollVisible) { me.updateSize(me._category_scroller); me._category_scroller.ggUpdatePosition(); } } } el=me._category_cloner=document.createElement('div'); el.ggNumRepeat = 1; el.ggNumRows = 0; el.ggNumCols = 0; el.ggWidth = 150; el.ggHeight = 128; el.ggUpdating = false; el.ggFilter = []; el.ggInstances = []; me._category_cloner.callChildLogicBlocks_changenode = function(){ if(me._category_cloner.ggInstances) { var i; for(i = 0; i < me._category_cloner.ggInstances.length; i++) { if (me._category_cloner.ggInstances[i]._category && me._category_cloner.ggInstances[i]._category.logicBlock_backgroundcolor) { me._category_cloner.ggInstances[i]._category.logicBlock_backgroundcolor(); } me._category_cloner.ggInstances[i]._node_cloner.callChildLogicBlocks_changenode(); } } } me._category_cloner.callChildLogicBlocks_mouseover = function(){ if(me._category_cloner.ggInstances) { var i; for(i = 0; i < me._category_cloner.ggInstances.length; i++) { if (me._category_cloner.ggInstances[i]._category && me._category_cloner.ggInstances[i]._category.logicBlock_backgroundcolor) { me._category_cloner.ggInstances[i]._category.logicBlock_backgroundcolor(); } } } } me._category_cloner.callChildLogicBlocks_mouseover = function(){ if(me._category_cloner.ggInstances) { var i; for(i = 0; i < me._category_cloner.ggInstances.length; i++) { me._category_cloner.ggInstances[i]._node_cloner.callChildLogicBlocks_mouseover(); } } } me._category_cloner.callChildLogicBlocks_active = function(){ if(me._category_cloner.ggInstances) { var i; for(i = 0; i < me._category_cloner.ggInstances.length; i++) { me._category_cloner.ggInstances[i]._node_cloner.callChildLogicBlocks_active(); } } } me._category_cloner.callChildLogicBlocks_changevisitednodes = function(){ if(me._category_cloner.ggInstances) { var i; for(i = 0; i < me._category_cloner.ggInstances.length; i++) { me._category_cloner.ggInstances[i]._node_cloner.callChildLogicBlocks_changevisitednodes(); } } } me._category_cloner.callChildLogicBlocks_activehotspotchanged = function(){ if(me._category_cloner.ggInstances) { var i; for(i = 0; i < me._category_cloner.ggInstances.length; i++) { me._category_cloner.ggInstances[i]._node_cloner.callChildLogicBlocks_activehotspotchanged(); } } } me._category_cloner.callChildLogicBlocks_varchanged_open_tag = function(){ if(me._category_cloner.ggInstances) { var i; for(i = 0; i < me._category_cloner.ggInstances.length; i++) { if (me._category_cloner.ggInstances[i]._category && me._category_cloner.ggInstances[i]._category.logicBlock_backgroundcolor) { me._category_cloner.ggInstances[i]._category.logicBlock_backgroundcolor(); } } } } el.ggAutoPosition = function(init) { var currYPos = 0; var numElements = me._category_cloner.ggInstances.length; var currElement = 0; for (var i=0; i<me._category_cloner.ggNumRows; i++) { var rowMaxHeight = 0; for (var j=0; j<me._category_cloner.ggNumCols; j++) { if (numElements > currElement) { if (!init) { if (me._category_cloner.childNodes[currElement].clientHeight < me._category_cloner.childNodes[currElement].scrollHeight && currElement < (numElements - 1)) { me._category_cloner.childNodes[currElement].style.transition = 'top ' + 1 + 's, height ' + 1 + 's'; } else { me._category_cloner.childNodes[currElement].style.transition = 'top ' + 1 + 's'; } } me._category_cloner.childNodes[currElement].style.overflow = 'hidden'; me._category_cloner.childNodes[currElement].style['top'] = currYPos + 'px'; me._category_cloner.childNodes[currElement].style['height'] ='0px'; rowMaxHeight = Math.max(rowMaxHeight, me._category_cloner.childNodes[currElement].scrollHeight); me._category_cloner.childNodes[currElement].style['height'] = rowMaxHeight + 'px'; } currElement++; } currYPos += rowMaxHeight; } setTimeout(function() { var p = me._category_cloner.parentElement; while (p != null && p !== me.divSkin) { if (p.ggType && p.ggType == 'scrollarea') { if (p.ggUpdatePosition) { p.ggUpdatePosition(); } } p = p.parentElement; } }, 1000); } el.ggUpdate = function(filter) { if(me._category_cloner.ggUpdating == true) return; me._category_cloner.ggUpdating = true; var el=me._category_cloner; var curNumCols = 0; curNumCols = me._category_cloner.ggNumRepeat; if (curNumCols < 1) curNumCols = 1; if (typeof filter=='object') { el.ggFilter = filter; } else { filter = el.ggFilter; }; if (me.ggTag) filter.push(me.ggTag); filter=filter.sort(); if ((el.ggNumCols == curNumCols) && (el.ggInstances.length > 0) && (filter.length === el.ggCurrentFilter.length) && (filter.every(function(value, index) { return value === el.ggCurrentFilter[index] }) )) { me._category_cloner.ggUpdating = false; return; } else { el.ggNumRows = 1; el.ggNumCols = curNumCols; } el.ggCurrentFilter = filter; el.ggInstances = []; if (el.hasChildNodes() == true) { while (el.firstChild) { el.removeChild(el.firstChild); } } var tourNodes = player.getNodeIds(); var row = 0; var column = 0; var currentIndex = 0; var firstNode; for (var i=0; i < el.ggTagTable.length; i++) { var cItem = el.ggTagTable[i]; firstNode = ''; cItem.nodecount = 0; for (var j=0; j < tourNodes.length; j++) { var nodeData = player.getNodeUserdata(tourNodes[j]); if ((nodeData['tags'].indexOf(cItem.tag) != -1) || (cItem.tag=='')) { var passed = true; if (filter.length > 0) { for (var k=0; k < filter.length; k++) { if (nodeData['tags'].indexOf(filter[k]) == -1) passed = false; } } if (passed) { cItem.nodecount++; if (firstNode == '') firstNode = tourNodes[j]; } } } cItem.firstnode=firstNode; if (cItem.nodecount == 0) continue; var nodeId = {}; nodeId['tag'] = cItem.tag; nodeId['title'] = cItem.title; nodeId['nodecount'] = cItem.nodecount; nodeId['firstnode'] = cItem.firstnode; var parameter={}; parameter.top=(row * me._category_cloner.ggHeight) + 'px'; parameter.left=(column * me._category_cloner.ggWidth) + 'px'; parameter.width=me._category_cloner.ggWidth + 'px'; parameter.height=me._category_cloner.ggHeight + 'px'; parameter.index=currentIndex; var inst = new SkinCloner_category_cloner_Class(nodeId, me, el, parameter); currentIndex++; inst.__div.style['height'] = '0px'; el.ggInstances.push(inst); el.appendChild(inst.__div); inst.__div.ggObj=inst; skin.updateSize(inst.__div); column++; if (column >= el.ggNumCols) { column = 0; row++; el.ggNumRows++; } } me._category_cloner.callChildLogicBlocks_changenode(); me._category_cloner.callChildLogicBlocks_mouseover(); me._category_cloner.callChildLogicBlocks_mouseover(); me._category_cloner.callChildLogicBlocks_active(); me._category_cloner.callChildLogicBlocks_changevisitednodes(); me._category_cloner.callChildLogicBlocks_activehotspotchanged(); me._category_cloner.callChildLogicBlocks_varchanged_open_tag(); me._category_cloner.ggAutoPosition(true); me._category_cloner.ggUpdating = false; player.triggerEvent('clonerchanged'); if (me._category_cloner.parentNode.classList.contains('ggskin_subelement') && me._category_cloner.parentNode.parentNode.classList.contains('ggskin_scrollarea')) me._category_cloner.parentNode.parentNode.ggUpdatePosition(); } el.ggFilter = []; el.ggTagTable = [ {tag:"First",title:"First Apartment"}, ]; el.ggId="category_cloner"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_cloner "; el.ggType='cloner'; hs =''; hs+='height : 128px;'; hs+='left : 5px;'; hs+='overflow : visible;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 150px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._category_cloner.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._category_cloner.ggUpdateConditionNodeChange=function () { var cnode=player.getCurrentNode(); for(var i=0; i<me._category_cloner.childNodes.length; i++) { var child=me._category_cloner.childNodes[i]; if (child.ggObj && child.ggObj.ggNodeId==cnode) { var childOffX = child.offsetLeft; var childOffY = child.offsetTop; var p = child.parentElement; while (p != null && p!==this.divSkin) { if (p.ggType && p.ggType == 'scrollarea') { p.ggScrollIntoView(childOffX, childOffY, child.clientWidth, child.clientHeight); } childOffX += p.offsetLeft; childOffY += p.offsetTop; p = p.parentElement; } } } } me._category_cloner.ggUpdatePosition=function (useTransition) { me._category_cloner.ggUpdate(); } me._category_cloner.ggNodeChange=function () { me._category_cloner.ggUpdateConditionNodeChange(); } me._category_scroller__content.appendChild(me._category_cloner); me._menu_background.appendChild(me._category_scroller); me.divSkin.appendChild(me._menu_background); el=me._menu_open=document.createElement('div'); els=me._menu_open__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJz8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICctLy9XM0MvL0RURCBTVkcgMS4xLy9FTicgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMycHgiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgZmlsbD0iI2ZmZmZmZiIgaWQ9IkxheWVyXzEiIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMzJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudz'+ 'Mub3JnLzE5OTkveGxpbmsiIGZpbGwtb3BhY2l0eT0iMSI+CiA8cGF0aCBkPSJNNCwxMGgyNGMxLjEwNCwwLDItMC44OTYsMi0ycy0wLjg5Ni0yLTItMkg0QzIuODk2LDYsMiw2Ljg5NiwyLDhTMi44OTYsMTAsNCwxMHogTTI4LDE0SDRjLTEuMTA0LDAtMiwwLjg5Ni0yLDIgIHMwLjg5NiwyLDIsMmgyNGMxLjEwNCwwLDItMC44OTYsMi0yUzI5LjEwNCwxNCwyOCwxNHogTTI4LDIySDRjLTEuMTA0LDAtMiwwLjg5Ni0yLDJzMC44OTYsMiwyLDJoMjRjMS4xMDQsMCwyLTAuODk2LDItMiAgUzI5LjEwNCwyMiwyOCwyMnoiLz4KPC9zdmc+Cg=='; me._menu_open__img.setAttribute('src',hs); els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="menu_open"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='position : absolute;'; hs+='right : 5px;'; hs+='top : 5px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._menu_open.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._menu_open.logicBlock_position = function() { var newLogicStatePosition; if ( ((player.getVariableValue('category_visible') == true)) ) { newLogicStatePosition = 0; } else { newLogicStatePosition = -1; } if (me._menu_open.ggCurrentLogicStatePosition != newLogicStatePosition) { me._menu_open.ggCurrentLogicStatePosition = newLogicStatePosition; me._menu_open.style[domTransition]='right 500ms ease 0ms, top 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._menu_open.ggCurrentLogicStatePosition == 0) { me._menu_open.style.right='130px'; me._menu_open.style.top='5px'; } else { me._menu_open.style.right='5px'; me._menu_open.style.top='5px'; } } } me._menu_open.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['menu_open'] == true)) ) { newLogicStateAlpha = 0; } else if ( ((player.getVariableValue('category_visible') == false)) ) { newLogicStateAlpha = 1; } else { newLogicStateAlpha = -1; } if (me._menu_open.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._menu_open.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._menu_open.style[domTransition]='right 500ms ease 0ms, top 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._menu_open.ggCurrentLogicStateAlpha == 0) { me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; me._menu_open.style.opacity=1; } else if (me._menu_open.ggCurrentLogicStateAlpha == 1) { me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; me._menu_open.style.opacity=0.6; } else { me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; me._menu_open.style.opacity=1; } } } me._menu_open.onclick=function (e) { player.setVariableValue('category_visible', !player.getVariableValue('category_visible')); } me._menu_open.onmouseover=function (e) { me.elementMouseOver['menu_open']=true; me._menu_open.logicBlock_alpha(); } me._menu_open.onmouseout=function (e) { me.elementMouseOver['menu_open']=false; me._menu_open.logicBlock_alpha(); } me._menu_open.ontouchend=function (e) { me.elementMouseOver['menu_open']=false; me._menu_open.logicBlock_alpha(); } me._menu_open.ggUpdatePosition=function (useTransition) { } me.divSkin.appendChild(me._menu_open); el=me._text_=document.createElement('div'); els=me._text___text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="Text \u0661"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='height : 35px;'; hs+='left : 10px;'; hs+='position : absolute;'; hs+='top : 10px;'; hs+='visibility : inherit;'; hs+='width : 150px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 150px;'; hs+='height: auto;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='font-size: 16px;'; hs+='font-weight: bold;'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 17px 18px 17px 18px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._text_.ggUpdateText=function() { var hs=me.ggUserdata.title; if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._text_.ggUpdateText(); player.addListener('changenode', function() { me._text_.ggUpdateText(); }); el.appendChild(els); me._text_.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._text_.ggUpdatePosition=function (useTransition) { } me.divSkin.appendChild(me._text_); el=me._button_toggle_map=document.createElement('div'); el.ggId="button_toggle_map"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='bottom : 5px;'; hs+='height : 32px;'; hs+='position : absolute;'; hs+='right : 5px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._button_toggle_map.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._button_toggle_map.onclick=function (e) { player.setVariableValue('vis_map', !player.getVariableValue('vis_map')); } me._button_toggle_map.ggUpdatePosition=function (useTransition) { } el=me._button_open_map=document.createElement('div'); els=me._button_open_map__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEgQmFzaWMvL0VOJyAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEtYmFzaWMuZHRkJz4KPCEtLSBHYXJkZW4gR25vbWUgU29mdHdhcmUgLSBTa2luIEJ1dHRvbnMgLS0+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIzMnB4IiBpZD0iTGF5ZXJfMSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgYmFzZV'+ 'Byb2ZpbGU9ImJhc2ljIiBoZWlnaHQ9IjMycHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KIDxnIG9wYWNpdHk9IjAuNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iIzNDM0MzQyI+CiAgPHBhdGggZD0iTTI4LjQ5OSwxNS4zNDRsLTcuNjQsMS45ODNWOS4yNDJsNy42NC0xLjkwNVYxNS4zNDR6IE0xOS44MzYsOS4yMjl2Ny45MzNsLTcuNjczLTMuODMzVjUuNDE2JiN4ZDsmI3hhOyYjeDk7JiN4OTtDMTIuMTYzLDUuNDE2LDE5Ljc3OCw5LjIwOSwxOS44MzYsOS4yMjl6IE0xMS4xNDEsNS4xNTV2OC4wOTJMMy41LDE1LjE2NlY3LjA2TDExLjE0MSw1LjE1'+ 'NXogTTMuNSwxNi4yMmw3LjY0MS0xLjkxOXY4LjM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jE0OWw3LjY3MywzLjgzMnY4LjI4MUwxMi4zMzUsMjIuODM4eiBNMjAuODU5LDI2Ljg0NnYtOC40NjJsNy42NC0xLjk4MkwyOC41LDI0Ljk0JiN4ZDsmI3hhOyYjeDk7JiN4OTtMMjAuODU5LDI2Ljg0NnoiLz4KIDwvZz4KPC9zdmc+Cg=='; me._button_open_map__img.setAttribute('src',hs); els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; elo=me._button_open_map__imgo=document.createElement('img'); elo.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEgQmFzaWMvL0VOJyAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEtYmFzaWMuZHRkJz4KPCEtLSBHYXJkZW4gR25vbWUgU29mdHdhcmUgLSBTa2luIEJ1dHRvbnMgLS0+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIzMnB4IiBpZD0iTGF5ZXJfMSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgYmFzZV'+ 'Byb2ZpbGU9ImJhc2ljIiBoZWlnaHQ9IjMycHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KIDxnIG9wYWNpdHk9IjAuNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iIzNDM0MzQyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYsMTYpIHNjYWxlKDEuMS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JiN4ZDsmI3hhOyYjeDk7JiN4OTtDMTIuMTYzLDUuNDE2LDE5Ljc3OCw5LjIwOSwxOS44MzYsOS4yMjl6IE0xMS4x'+ 'NDEsNS4xNTV2OC4wOTJMMy41LDE1LjE2NlY3LjA2TDExLjE0MSw1LjE1NXogTTMuNSwxNi4yMmw3LjY0MS0xLjkxOXY4LjMyJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMCwwLjA0NSwwLjAwOCwwLjA5LDAuMDE5LDAuMTMyTDMuNSwyNC42NjJWMTYuMjJ6IE0xMi4zMzUsMjIuODM4Yy0wLjA2My0wLjAzMi0wLjEyNy0wLjA1OC0wLjE5NC0wLjA4JiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC4wMTItMC4wNDQsMC4wMjEtMC4wOSwwLjAyMS0wLjEzN3YtOC4xNDlsNy42NzMsMy44MzJ2OC4yODFMMTIuMzM1LDIyLjgzOHogTTIwLjg1OSwyNi44NDZ2LTguNDYybDcuNjQtMS45ODJMMjguNSwyNC45NCYjeGQ7Ji'+ 'N4YTsmI3g5OyYjeDk7TDIwLjg1OSwyNi44NDZ6Ii8+CiA8L2c+Cjwvc3ZnPgo='; me._button_open_map__imgo.setAttribute('src',hs); elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); elo['ondragstart']=function() { return false; }; el.appendChild(elo); el.ggId="button_open_map"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='left : 0px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._button_open_map.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._button_open_map.onmouseover=function (e) { me._button_open_map__img.style.visibility='hidden'; me._button_open_map__imgo.style.visibility='inherit'; me.elementMouseOver['button_open_map']=true; me._tt_togglemap.logicBlock_visible(); } me._button_open_map.onmouseout=function (e) { me._button_open_map__img.style.visibility='inherit'; me._button_open_map__imgo.style.visibility='hidden'; me.elementMouseOver['button_open_map']=false; me._tt_togglemap.logicBlock_visible(); } me._button_open_map.ontouchend=function (e) { me.elementMouseOver['button_open_map']=false; me._tt_togglemap.logicBlock_visible(); } me._button_open_map.ggUpdatePosition=function (useTransition) { } el=me._tt_togglemap=document.createElement('div'); els=me._tt_togglemap__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="tt_togglemap"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='z-index: 100;'; hs+='height : 20px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 32px;'; hs+='visibility : hidden;'; hs+='width : 100px;'; hs+='pointer-events:auto;'; hs+='text-shadow: 1px 1px 4px #000000;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: auto;'; hs+='height: auto;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=""; el.appendChild(els); me._tt_togglemap.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._tt_togglemap.logicBlock_position = function() { var newLogicStatePosition; if ( ((player.getHasTouch() == true)) ) { newLogicStatePosition = 0; } else { newLogicStatePosition = -1; } if (me._tt_togglemap.ggCurrentLogicStatePosition != newLogicStatePosition) { me._tt_togglemap.ggCurrentLogicStatePosition = newLogicStatePosition; me._tt_togglemap.style[domTransition]='left 0s, top 0s'; if (me._tt_togglemap.ggCurrentLogicStatePosition == 0) { this.ggDx = 0; me._tt_togglemap.style.top='-25px'; me._tt_togglemap.ggUpdatePosition(true); } else { me._tt_togglemap.ggDx=0; me._tt_togglemap.style.top='32px'; me._tt_togglemap.ggUpdatePosition(true); } } } me._tt_togglemap.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.elementMouseOver['button_open_map'] == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._tt_togglemap.ggCurrentLogicStateVisible != newLogicStateVisible) { me._tt_togglemap.ggCurrentLogicStateVisible = newLogicStateVisible; me._tt_togglemap.style[domTransition]='left 0s, top 0s'; if (me._tt_togglemap.ggCurrentLogicStateVisible == 0) { me._tt_togglemap.style.visibility=(Number(me._tt_togglemap.style.opacity)>0||!me._tt_togglemap.style.opacity)?'inherit':'hidden'; me._tt_togglemap.ggVisible=true; } else { me._tt_togglemap.style.visibility="hidden"; me._tt_togglemap.ggVisible=false; } } } me._tt_togglemap.logicBlock_text = function() { var newLogicStateText; if ( ((player.getVariableValue('vis_map') == true)) ) { newLogicStateText = 0; } else if ( ((player.getVariableValue('vis_map') == false)) ) { newLogicStateText = 1; } else { newLogicStateText = -1; } if (me._tt_togglemap.ggCurrentLogicStateText != newLogicStateText) { me._tt_togglemap.ggCurrentLogicStateText = newLogicStateText; me._tt_togglemap.style[domTransition]='left 0s, top 0s'; if (me._tt_togglemap.ggCurrentLogicStateText == 0) { me._tt_togglemap.ggText="Close Map"; me._tt_togglemap__text.innerHTML=me._tt_togglemap.ggText; if (me._tt_togglemap.ggUpdateText) { me._tt_togglemap.ggUpdateText=function() { var hs="Close Map"; if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } } else { if (me._tt_togglemap.ggUpdatePosition) me._tt_togglemap.ggUpdatePosition(); } } else if (me._tt_togglemap.ggCurrentLogicStateText == 1) { me._tt_togglemap.ggText="Open Map"; me._tt_togglemap__text.innerHTML=me._tt_togglemap.ggText; if (me._tt_togglemap.ggUpdateText) { me._tt_togglemap.ggUpdateText=function() { var hs="Open Map"; if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } } else { if (me._tt_togglemap.ggUpdatePosition) me._tt_togglemap.ggUpdatePosition(); } } else { me._tt_togglemap.ggText=""; me._tt_togglemap__text.innerHTML=me._tt_togglemap.ggText; if (me._tt_togglemap.ggUpdateText) { me._tt_togglemap.ggUpdateText=function() { var hs=""; if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } } else { if (me._tt_togglemap.ggUpdatePosition) me._tt_togglemap.ggUpdatePosition(); } } } } me._tt_togglemap.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } this.style[domTransition]='left 0'; this.ggTextDiv.style.left=((98-this.ggTextDiv.offsetWidth)/2) + 'px'; } me._button_open_map.appendChild(me._tt_togglemap); me._button_toggle_map.appendChild(me._button_open_map); el=me._button_close_map=document.createElement('div'); els=me._button_close_map__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSItMjQwIDMzMiAxMzAgMTMwIiB4PSIwcHgiIHk9IjBweCIgaWQ9IkxheWVyXzEiIHhtbDpzcGFjZT0icHJlc2VydmUiIGJhc2VQcm9maWxlPSJ0aW55IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiA8ZyBzdHJva2'+ 'Utd2lkdGg9IjIuMCIgaWQ9IkxheWVyXzFfMV8iIHN0cm9rZT0iIzAwMDAwMCI+CiAgPHBhdGggb3BhY2l0eT0iMS4wIiBmaWxsPSIjZmZmZmZmIiBkPSJNLTEzOS4zLDM1Ny44YzAuNCwwLDAuOSwwLjIsMS4yLDAuNWwxLjgsMS44YzAuNywwLjcsMC43LDEuNywwLDIuNGwtNzMuMyw3My4zYy0wLjMsMC4zLTAuOCwwLjUtMS4yLDAuNSYjeGQ7JiN4YTsmI3g5OyYjeDk7cy0wLjktMC4yLTEuMi0wLjVsLTEuOC0xLjhjLTAuNy0wLjctMC43LTEuNywwLTIuNGw3My4zLTczLjNDLTE0MC4xLDM1OC0xMzkuNywzNTcuOC0xMzkuMywzNTcuOCIvPgogPC9nPgogPGcgaWQ9IkxheWVyXzIiLz4KPC9zdmc+'+ 'Cg=='; me._button_close_map__img.setAttribute('src',hs); els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="button_close_map"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='left : 0px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : hidden;'; hs+='width : 32px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._button_close_map.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._button_close_map.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_map') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._button_close_map.ggCurrentLogicStateVisible != newLogicStateVisible) { me._button_close_map.ggCurrentLogicStateVisible = newLogicStateVisible; me._button_close_map.style[domTransition]=''; if (me._button_close_map.ggCurrentLogicStateVisible == 0) { me._button_close_map.style.visibility=(Number(me._button_close_map.style.opacity)>0||!me._button_close_map.style.opacity)?'inherit':'hidden'; me._button_close_map.ggVisible=true; } else { me._button_close_map.style.visibility="hidden"; me._button_close_map.ggVisible=false; } } } me._button_close_map.ggUpdatePosition=function (useTransition) { } me._button_toggle_map.appendChild(me._button_close_map); me.divSkin.appendChild(me._button_toggle_map); el=me._map_container=document.createElement('div'); el.ggId="map_container"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='bottom : 50px;'; hs+='height : 225px;'; hs+='position : absolute;'; hs+='right : 50px;'; hs+='visibility : hidden;'; hs+='width : 250px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._map_container.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._map_container.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_map') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._map_container.ggCurrentLogicStateVisible != newLogicStateVisible) { me._map_container.ggCurrentLogicStateVisible = newLogicStateVisible; me._map_container.style[domTransition]=''; if (me._map_container.ggCurrentLogicStateVisible == 0) { me._map_container.style.visibility=(Number(me._map_container.style.opacity)>0||!me._map_container.style.opacity)?'inherit':'hidden'; me._map_container.ggVisible=true; } else { me._map_container.style.visibility="hidden"; me._map_container.ggVisible=false; } } } me._map_container.ggUpdatePosition=function (useTransition) { } el=me._map=document.createElement('div'); el.ggFilter = ''; el.ggFilteredIds = []; el.ggMapNotLoaded = true; el.ggId="map"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_map "; el.ggType='map'; hs =''; hs+='z-index: 0;'; hs+='background : #ffffff;'; hs+='border : 1px solid #000000;'; hs+='cursor : default;'; hs+='height : 100%;'; hs+='left : 0px;'; hs+='overflow : hidden;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : hidden;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._map.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._map.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_map') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._map.ggCurrentLogicStateVisible != newLogicStateVisible) { me._map.ggCurrentLogicStateVisible = newLogicStateVisible; me._map.style[domTransition]=''; if (me._map.ggCurrentLogicStateVisible == 0) { me._map.style.visibility=(Number(me._map.style.opacity)>0||!me._map.style.opacity)?'inherit':'hidden'; if (me._map.ggMapNotLoaded) { me._map.ggInitMap(false); me._map.ggInitMapMarkers(true); } me._map.ggVisible=true; } else { me._map.style.visibility="hidden"; me._map.ggClearMap(); me._map.ggVisible=false; } } } me._map.ggCurrentLogicStateVisible = -1; me._map.ggUpdateConditionResize=function () { var mapDetails = player.getMapDetails(me._map.ggMapId); if (!(mapDetails.hasOwnProperty('title'))) return; me._map.ggCalculateFloorplanSize(mapDetails); me._map.ggShowSimpleFloorplan(mapDetails); me._map.ggPlaceMarkersOnSimpleFloorplan(); } me._map.ggUpdatePosition=function (useTransition) { me._map.ggUpdateConditionResize(); } me._map.ggNodeChange=function () { var mapDetails = player.getMapDetails(me._map.ggMapId); if (!(mapDetails.hasOwnProperty('title'))) return; me._map.ggCalculateFloorplanSize(mapDetails); me._map.ggShowSimpleFloorplan(mapDetails); me._map.ggPlaceMarkersOnSimpleFloorplan(); if (me._map.ggLastNodeId) { var lastActiveMarker = me._map.ggSimpleFloorplanMarkerArray[me._map.ggLastNodeId]; if (lastActiveMarker && lastActiveMarker.ggDeactivate) lastActiveMarker.ggDeactivate(); } var id = player.getCurrentNode(); var marker = me._map.ggSimpleFloorplanMarkerArray[id]; if (marker) { if (marker.ggActivate) marker.ggActivate(); } if (player.getMapType(me._map.ggMapId) == 'file') { var coords = player.getNodeMapCoords(id, me._map.ggMapId); if (coords.length < 2) { var mapId = player.getMapContainingNode(id); if (mapId != '') { me._map.ggChangeMap(mapId); } } } me._map.ggLastNodeId = id; } me._map_container.appendChild(me._map); el=me._close=document.createElement('div'); els=me._close__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE1LjAuMiwgU1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IjMDAwMDAwIi8+CiA8L2c+Cjwvc3ZnPgo='; me._close__img.setAttribute('src',hs); els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; elo=me._close__imgo=document.createElement('img'); elo.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE1LjAuMiwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzIgMzIiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzJweCIgZW'+ '5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIGlkPSJMYXllcl8xIiB4bWw6c3BhY2U9InByZXNlcnZlIiBoZWlnaHQ9IjMycHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KIDxnIG9wYWNpdHk9IjAuNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYsMTYpIHNjYWxlKDEuMSkgdHJhbnNsYXRlKC0xNiwtMTYpIj4KICA8cGF0aCBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTIxLjEzMiwxOS40MzlMMTcuNjkzLDE2bDMuNDM5LTMuNDRjMC40NjgtMC40NjcsMC40NjgtMS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ODEsNC44ODEtNC44ODEsMTIuNzk2LDAsMTcuNjc4JiN4ZDsmI3hhOyYjeDk7JiN4OTtjNC44ODIsNC44ODEsMTIuNzk2LDQuODgxLDE3LjY3OCwwQzI5LjcyLDE5Ljk1NywyOS43MjEsMTIuMDQzLDI0LjgzOSw3LjE2MXogTTE2LDI2LjEwNmMtMi41OSwwLTUuMTcxLTAuOTg0LTcuMTQ2LTIuOTU5JiN4ZD'+ 'smI3hhOyYjeDk7JiN4OTtDNi44NzgsMjEuMTcsNS44OTUsMTguNTkxLDUuODk0LDE2YzAtMi41OTEsMC45ODMtNS4xNywyLjk1OS03LjE0N2MxLjk3Ny0xLjk3Niw0LjU1Ni0yLjk1OSw3LjE0OC0yLjk2JiN4ZDsmI3hhOyYjeDk7JiN4OTtjMi41OTEsMC4wMDEsNS4xNywwLjk4NCw3LjE0NywyLjk1OWMxLjk3NSwxLjk3NywyLjk1Nyw0LjU1NiwyLjk1OSw3LjE0N2MtMC4wMDEsMi41OTItMC45ODQsNS4xNy0yLjk2LDcuMTQ4JiN4ZDsmI3hhOyYjeDk7JiN4OTtDMjEuMTcsMjUuMTIzLDE4LjU5MSwyNi4xMDcsMTYsMjYuMTA2eiIgc3Ryb2tlPSIjMDAwMDAwIi8+CiA8L2c+Cjwvc3ZnPgo='; me._close__imgo.setAttribute('src',hs); elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); elo['ondragstart']=function() { return false; }; el.appendChild(elo); el.ggId="close"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='position : absolute;'; hs+='right : -40px;'; hs+='top : -20px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._close.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._close.onclick=function (e) { player.setVariableValue('vis_map', false); } me._close.onmouseover=function (e) { me._close__img.style.visibility='hidden'; me._close__imgo.style.visibility='inherit'; } me._close.onmouseout=function (e) { me._close__img.style.visibility='inherit'; me._close__imgo.style.visibility='hidden'; } me._close.ggUpdatePosition=function (useTransition) { } me._map_container.appendChild(me._close); me.divSkin.appendChild(me._map_container); me._map.ggMarkerInstances=[]; me._map.ggMapId = 'FloorPlan02'; me._map.ggLastNodeId=null; me._map.callChildLogicBlocksHotspot_map_pin_changenode = function(){ if(me._map.ggMarkerInstances) { var i; for(i = 0; i < me._map.ggMarkerInstances.length; i++) { if (me._map.ggMarkerInstances[i]._map_pin_tt && me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_alpha) { me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_alpha(); } } } } me._map.callChildLogicBlocksHotspot_map_pin_configloaded = function(){ if(me._map.ggMarkerInstances) { var i; for(i = 0; i < me._map.ggMarkerInstances.length; i++) { if (me._map.ggMarkerInstances[i]._map_pin_tt && me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_position) { me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_position(); } } } } me._map.callChildLogicBlocksHotspot_map_pin_mouseover = function(){ if(me._map.ggMarkerInstances) { var i; for(i = 0; i < me._map.ggMarkerInstances.length; i++) { if (me._map.ggMarkerInstances[i]._map_pin_normal && me._map.ggMarkerInstances[i]._map_pin_normal.logicBlock_scaling) { me._map.ggMarkerInstances[i]._map_pin_normal.logicBlock_scaling(); } if (me._map.ggMarkerInstances[i]._map_pin_active && me._map.ggMarkerInstances[i]._map_pin_active.logicBlock_scaling) { me._map.ggMarkerInstances[i]._map_pin_active.logicBlock_scaling(); } } } } me._map.callChildLogicBlocksHotspot_map_pin_mouseover = function(){ if(me._map.ggMarkerInstances) { var i; for(i = 0; i < me._map.ggMarkerInstances.length; i++) { if (me._map.ggMarkerInstances[i]._map_pin_tt && me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_alpha) { me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_alpha(); } } } } me._map.callChildLogicBlocksHotspot_map_pin_active = function(){ if(me._map.ggMarkerInstances) { var i; for(i = 0; i < me._map.ggMarkerInstances.length; i++) { if (me._map.ggMarkerInstances[i]._map_pin_normal && me._map.ggMarkerInstances[i]._map_pin_normal.logicBlock_alpha) { me._map.ggMarkerInstances[i]._map_pin_normal.logicBlock_alpha(); } if (me._map.ggMarkerInstances[i]._map_pin_active && me._map.ggMarkerInstances[i]._map_pin_active.logicBlock_alpha) { me._map.ggMarkerInstances[i]._map_pin_active.logicBlock_alpha(); } } } } me._map.callChildLogicBlocksHotspot_map_pin_hastouch = function(){ if(me._map.ggMarkerInstances) { var i; for(i = 0; i < me._map.ggMarkerInstances.length; i++) { if (me._map.ggMarkerInstances[i]._map_pin_tt && me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_position) { me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_position(); } } } } me._map.callChildLogicBlocksHotspot_map_pin_activehotspotchanged = function(){ if(me._map.ggMarkerInstances) { var i; for(i = 0; i < me._map.ggMarkerInstances.length; i++) { if (me._map.ggMarkerInstances[i]._map_pin_tt && me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_alpha) { me._map.ggMarkerInstances[i]._map_pin_tt.logicBlock_alpha(); } } } } me._map.ggSimpleFloorplanMarkerArray=[]; me._map.ggFloorplanWidth=0; me._map.ggFloorplanHeight=0; me._map__mapdiv=document.createElement('div'); me._map__mapdiv.className='ggskin ggskin_map'; me._map.appendChild(me._map__mapdiv); me._map__img=document.createElement('img'); me._map__img.className='ggskin ggskin_map'; me._map__mapdiv.appendChild(me._map__img); me._map.ggShowSimpleFloorplan=function(mapDetails) { var mapWidth = me._map.clientWidth; var mapHeight = me._map.clientHeight; var levelLimit = 500; var level = 1; while (mapWidth > levelLimit && mapHeight > levelLimit) { levelLimit *= 2; if (mapDetails['width'] < levelLimit || mapDetails['height'] < levelLimit) break; level++; } var imageFilename = basePath + 'images/maptiles/' + me._map.ggMapId + '_' + level + '.' + mapDetails['tileformat']; me._map__img.setAttribute('src', imageFilename); me._map__mapdiv.setAttribute('style','position: absolute; left: 0px; top: 0px;width:' + me._map.ggFloorplanWidth + 'px;height:' + me._map.ggFloorplanHeight + 'px;overflow:hidden;;'); me._map__img.setAttribute('style','width:' + me._map.ggFloorplanWidth + 'px;height:' + me._map.ggFloorplanHeight + 'px;-webkit-user-drag:none;pointer-events:none;'); } me._map.ggCalculateFloorplanSize=function(mapDetails) { var floorplanWidth = mapDetails['width']; var floorplanHeight = mapDetails['height']; var frameAR = me._map.clientWidth / me._map.clientHeight; var floorplanAR = floorplanWidth / floorplanHeight; if (frameAR > floorplanAR) { me._map.ggFloorplanHeight = me._map.clientHeight; me._map.ggFloorplanWidth = me._map.ggFloorplanHeight * floorplanAR; } else { me._map.ggFloorplanWidth = me._map.clientWidth; me._map.ggFloorplanHeight = me._map.ggFloorplanWidth / floorplanAR; } } me._map.ggInitMap=function() { me._map.ggMapNotLoaded = false; var mapDetails = player.getMapDetails(me._map.ggMapId); me._map.style.backgroundColor = mapDetails['bgcolor']; if (mapDetails.hasOwnProperty('transparent') && mapDetails['transparent']) { me._map.ggPermeableMap = true; } else { me._map.ggPermeableMap = false; } me._map.ggCalculateFloorplanSize(mapDetails); me._map.ggShowSimpleFloorplan(mapDetails); me._map.ggFloorplanNorth = mapDetails['floorplannorth']; } me._map.ggClearMap=function() { me._map.ggClearMapMarkers(); me._map.ggMapNotLoaded = true; } me._map.ggChangeMap=function(mapId) { var newMapType = player.getMapType(mapId) if (newMapType == 'web') { return; } me._map.ggMapId = mapId; me._map.ggClearMap(); me._map.ggInitMap(); me._map.ggInitMapMarkers(); } me._map.ggPlaceMarkersOnSimpleFloorplan=function() { var markers=me._map.ggSimpleFloorplanMarkerArray; for (id in markers) { if (markers.hasOwnProperty(id)) { marker=markers[id]; var coords = player.getNodeMapCoordsInPercent(id, me._map.ggMapId); var xPos = (me._map.ggFloorplanWidth * coords[0]) / 100.0; var yPos = (me._map.ggFloorplanHeight * coords[1]) / 100.0; marker.radarXPos = xPos; marker.radarYPos = yPos; xPos -= me._map.ggHMarkerAnchorOffset; yPos -= me._map.ggVMarkerAnchorOffset; marker.style['position'] = 'absolute'; marker.style['left'] = xPos + 'px'; marker.style['top'] = yPos + 'px'; marker.style['z-index'] = me._map.style['z-index'] + 2; } } } me._map.ggInitMapMarkers=function() { me._map.ggClearMapMarkers(); var ids=player.getNodeIds(); me._map.ggFilteredIds = []; if (me._map.ggFilter != '') { var filter = me._map.ggFilter.split(','); for (i=0; i < ids.length; i++) { var nodeId = ids[i]; var nodeData = player.getNodeUserdata(nodeId); for (var j=0; j < filter.length; j++) { if (nodeData['tags'].indexOf(filter[j].trim()) != -1) me._map.ggFilteredIds.push(nodeId); } } if (me._map.ggFilteredIds.length > 0) ids = me._map.ggFilteredIds; } for(var i=0; i < ids.length; i++) { var id = ids[i]; var coords = player.getNodeMapCoordsInPercent(id, me._map.ggMapId); if (coords.length>=2) { me._map.ggHMarkerAnchorOffset = 12; me._map.ggVMarkerAnchorOffset = 41; var markerParent = new Object(); markerParent.ggElementNodeId=function() { return id }; var markerClass = new SkinElement_map_pin_Class(me, markerParent); me._map.ggMarkerInstances.push(markerClass); var marker = markerClass._map_pin; me._map.ggSimpleFloorplanMarkerArray[id] = marker; me._map__mapdiv.appendChild(marker); } } me._map.ggPlaceMarkersOnSimpleFloorplan(); skin.updateSize(me._map); me._map.callChildLogicBlocksHotspot_map_pin_changenode(); me._map.callChildLogicBlocksHotspot_map_pin_configloaded(); me._map.callChildLogicBlocksHotspot_map_pin_mouseover(); me._map.callChildLogicBlocksHotspot_map_pin_mouseover(); me._map.callChildLogicBlocksHotspot_map_pin_active(); me._map.callChildLogicBlocksHotspot_map_pin_hastouch(); me._map.callChildLogicBlocksHotspot_map_pin_activehotspotchanged(); } me._map.ggClearMapMarkers=function() { for (id in me._map.ggSimpleFloorplanMarkerArray) { if (me._map.ggSimpleFloorplanMarkerArray.hasOwnProperty(id)) { me._map__mapdiv.removeChild(me._map.ggSimpleFloorplanMarkerArray[id]); } } me._map.ggMarkerInstances=[]; me._map.ggSimpleFloorplanMarkerArray=[]; } player.addListener('sizechanged', function() { me.updateSize(me.divSkin); }); player.addListener('configloaded', function() { me._category_cloner.ggUpdate(); if (me._map.ggMapNotLoaded == false) { me._map.ggClearMap(); me._map.ggInitMap(false); me._map.ggInitMapMarkers(true); } }); player.addListener('imagesready', function() { me._category_scroller.ggUpdatePosition(); }); }; this.hotspotProxyClick=function(id, url) { } this.hotspotProxyDoubleClick=function(id, url) { } me.hotspotProxyOver=function(id, url) { } me.hotspotProxyOut=function(id, url) { } me.callChildLogicBlocksHotspot_ht_node_sizechanged = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._ht_node.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_ht_node_changenode = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._ht_node.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_node_visited0 && hotspotTemplates['ht_node'][i]._ht_node_visited0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_visited0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_node_image0 && hotspotTemplates['ht_node'][i]._ht_node_image0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_image0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._hotspot_preview0 && hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._tt_ht_node0 && hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_node_customimage0 && hotspotTemplates['ht_node'][i]._ht_node_customimage0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_customimage0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_tooltip0 && hotspotTemplates['ht_node'][i]._ht_tooltip0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_tooltip0.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_ht_node_configloaded = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._hotspot_preview0 && hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._tt_ht_node0 && hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_position) { hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_position(); } if (hotspotTemplates['ht_node'][i]._tt_ht_node0 && hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_ht_node_mouseover = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._hotspot_preview0 && hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._tt_ht_node0 && hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_ht_node_active = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._ht_checkmark_tick0 && hotspotTemplates['ht_node'][i]._ht_checkmark_tick0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_checkmark_tick0.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_ht_node_changevisitednodes = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._ht_node_visited0 && hotspotTemplates['ht_node'][i]._ht_node_visited0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_visited0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_node_image0 && hotspotTemplates['ht_node'][i]._ht_node_image0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_image0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_checkmark_tick0 && hotspotTemplates['ht_node'][i]._ht_checkmark_tick0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_checkmark_tick0.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_ht_node_hastouch = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._tt_ht_node0 && hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_position) { hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_position(); } } } } me.callChildLogicBlocksHotspot_ht_node_activehotspotchanged = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._ht_node_visited0 && hotspotTemplates['ht_node'][i]._ht_node_visited0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_visited0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_node_image0 && hotspotTemplates['ht_node'][i]._ht_node_image0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_image0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._tt_ht_node0 && hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_node_customimage0 && hotspotTemplates['ht_node'][i]._ht_node_customimage0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_node_customimage0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._ht_tooltip0 && hotspotTemplates['ht_node'][i]._ht_tooltip0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._ht_tooltip0.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_ht_node_varchanged_opt_hotspot_preview = function(){ if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { if (hotspotTemplates['ht_node'][i]._hotspot_preview0 && hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._hotspot_preview0.logicBlock_visible(); } if (hotspotTemplates['ht_node'][i]._tt_ht_node0 && hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible) { hotspotTemplates['ht_node'][i]._tt_ht_node0.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_sizechanged = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._door.logicBlock_visible) { hotspotTemplates['door'][i]._door.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_changenode = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._door.logicBlock_visible) { hotspotTemplates['door'][i]._door.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_node_visited && hotspotTemplates['door'][i]._ht_node_visited.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_visited.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_node_image && hotspotTemplates['door'][i]._ht_node_image.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_image.logicBlock_visible(); } if (hotspotTemplates['door'][i]._hotspot_preview && hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible) { hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible(); } if (hotspotTemplates['door'][i]._tt_ht_node && hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible) { hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_node_customimage && hotspotTemplates['door'][i]._ht_node_customimage.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_customimage.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_tooltip && hotspotTemplates['door'][i]._ht_tooltip.logicBlock_visible) { hotspotTemplates['door'][i]._ht_tooltip.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_configloaded = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._hotspot_preview && hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible) { hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible(); } if (hotspotTemplates['door'][i]._tt_ht_node && hotspotTemplates['door'][i]._tt_ht_node.logicBlock_position) { hotspotTemplates['door'][i]._tt_ht_node.logicBlock_position(); } if (hotspotTemplates['door'][i]._tt_ht_node && hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible) { hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_mouseover = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._hotspot_preview && hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible) { hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible(); } if (hotspotTemplates['door'][i]._tt_ht_node && hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible) { hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_active = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._ht_checkmark_tick && hotspotTemplates['door'][i]._ht_checkmark_tick.logicBlock_visible) { hotspotTemplates['door'][i]._ht_checkmark_tick.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_changevisitednodes = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._ht_node_visited && hotspotTemplates['door'][i]._ht_node_visited.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_visited.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_node_image && hotspotTemplates['door'][i]._ht_node_image.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_image.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_checkmark_tick && hotspotTemplates['door'][i]._ht_checkmark_tick.logicBlock_visible) { hotspotTemplates['door'][i]._ht_checkmark_tick.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_hastouch = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._tt_ht_node && hotspotTemplates['door'][i]._tt_ht_node.logicBlock_position) { hotspotTemplates['door'][i]._tt_ht_node.logicBlock_position(); } } } } me.callChildLogicBlocksHotspot_door_activehotspotchanged = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._ht_node_visited && hotspotTemplates['door'][i]._ht_node_visited.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_visited.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_node_image && hotspotTemplates['door'][i]._ht_node_image.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_image.logicBlock_visible(); } if (hotspotTemplates['door'][i]._tt_ht_node && hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible) { hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_node_customimage && hotspotTemplates['door'][i]._ht_node_customimage.logicBlock_visible) { hotspotTemplates['door'][i]._ht_node_customimage.logicBlock_visible(); } if (hotspotTemplates['door'][i]._ht_tooltip && hotspotTemplates['door'][i]._ht_tooltip.logicBlock_visible) { hotspotTemplates['door'][i]._ht_tooltip.logicBlock_visible(); } } } } me.callChildLogicBlocksHotspot_door_varchanged_opt_hotspot_preview_1 = function(){ if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { if (hotspotTemplates['door'][i]._hotspot_preview && hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible) { hotspotTemplates['door'][i]._hotspot_preview.logicBlock_visible(); } if (hotspotTemplates['door'][i]._tt_ht_node && hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible) { hotspotTemplates['door'][i]._tt_ht_node.logicBlock_visible(); } } } } player.addListener('changenode', function() { me.ggUserdata=player.userdata; }); me.skinTimerEvent=function() { me.ggCurrentTime=new Date().getTime(); }; player.addListener('timer', me.skinTimerEvent); function SkinHotspotClass_ht_node(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown=[]; me.elementMouseOver=[]; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._ht_node=document.createElement('div'); el.ggId="ht_node"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='height : 0px;'; hs+='left : 75px;'; hs+='position : absolute;'; hs+='top : 130px;'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_node.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._ht_node.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_userdata') == true)) || ((player.getVariableValue('vis_image_popup') == true)) || ((player.getVariableValue('vis_info_popup') == true)) || ((player.getVariableValue('vis_video_popup_file') == true)) || ((player.getVariableValue('vis_video_popup_url') == true)) || ((player.getVariableValue('vis_video_popup_vimeo') == true)) || ((player.getVariableValue('vis_video_popup_youtube') == true)) || ((player.getVariableValue('vis_website') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_node.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_node.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_node.style[domTransition]=''; if (me._ht_node.ggCurrentLogicStateVisible == 0) { me._ht_node.style.visibility="hidden"; me._ht_node.ggVisible=false; } else { me._ht_node.style.visibility=(Number(me._ht_node.style.opacity)>0||!me._ht_node.style.opacity)?'inherit':'hidden'; me._ht_node.ggVisible=true; } } } me._ht_node.onclick=function (e) { player.openNext(me.hotspot.url,me.hotspot.target); skin.hotspotProxyClick(me.hotspot.id, me.hotspot.url); } me._ht_node.ondblclick=function (e) { skin.hotspotProxyDoubleClick(me.hotspot.id, me.hotspot.url); } me._ht_node.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['ht_node']=true; me._hotspot_preview0.logicBlock_visible(); me._tt_ht_node0.logicBlock_visible(); skin.hotspotProxyOver(me.hotspot.id, me.hotspot.url); } me._ht_node.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['ht_node']=false; me._hotspot_preview0.logicBlock_visible(); me._tt_ht_node0.logicBlock_visible(); skin.hotspotProxyOut(me.hotspot.id, me.hotspot.url); } me._ht_node.ontouchend=function (e) { me.elementMouseOver['ht_node']=false; me._hotspot_preview0.logicBlock_visible(); me._tt_ht_node0.logicBlock_visible(); } me._ht_node.ggUpdatePosition=function (useTransition) { } el=me._ht_node_visited0=document.createElement('div'); els=me._ht_node_visited0__img=document.createElement('img'); els.className='ggskin ggskin_ht_node_visited0'; hs=basePath + 'images/ht_node_visited0.png'; els.setAttribute('src',hs); els.ggNormalSrc=hs; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_button'; els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.appendChild(els); el.ggSubElement = els; el.ggId="ht_node_visited"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_button "; el.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -10000px;'; hs+='visibility : hidden;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_node_visited0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_node_visited0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.nodeVisited(me._ht_node_visited0.ggElementNodeId()) == true)) && ((me.hotspot.customimage == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_node_visited0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_node_visited0.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_node_visited0.style[domTransition]=''; if (me._ht_node_visited0.ggCurrentLogicStateVisible == 0) { me._ht_node_visited0.style.visibility=(Number(me._ht_node_visited0.style.opacity)>0||!me._ht_node_visited0.style.opacity)?'inherit':'hidden'; me._ht_node_visited0.ggVisible=true; } else { me._ht_node_visited0.style.visibility="hidden"; me._ht_node_visited0.ggVisible=false; } } } me._ht_node_visited0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; var ph=this.parentNode.clientHeight; var h=this.offsetHeight; this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } } me._ht_node.appendChild(me._ht_node_visited0); el=me._ht_node_image0=document.createElement('div'); els=me._ht_node_image0__img=document.createElement('img'); els.className='ggskin ggskin_ht_node_image0'; hs=basePath + 'images/ht_node_image0.png'; els.setAttribute('src',hs); els.ggNormalSrc=hs; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_button'; els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.appendChild(els); el.ggSubElement = els; el.ggId="ht_node_image"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_button "; el.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -10000px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_node_image0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_node_image0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.nodeVisited(me._ht_node_image0.ggElementNodeId()) == true)) || ((me.hotspot.customimage != "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_node_image0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_node_image0.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_node_image0.style[domTransition]=''; if (me._ht_node_image0.ggCurrentLogicStateVisible == 0) { me._ht_node_image0.style.visibility="hidden"; me._ht_node_image0.ggVisible=false; } else { me._ht_node_image0.style.visibility=(Number(me._ht_node_image0.style.opacity)>0||!me._ht_node_image0.style.opacity)?'inherit':'hidden'; me._ht_node_image0.ggVisible=true; } } } me._ht_node_image0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; var ph=this.parentNode.clientHeight; var h=this.offsetHeight; this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } } me._ht_node.appendChild(me._ht_node_image0); el=me._hotspot_preview0=document.createElement('div'); el.ggId="hotspot_preview"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='z-index: 100;'; hs+='height : 100px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -130px;'; hs+='visibility : hidden;'; hs+='width : 150px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._hotspot_preview0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._hotspot_preview0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.elementMouseOver['ht_node'] == true)) && ((player.getVariableValue('opt_hotspot_preview') == true)) && ((player.getIsTour() == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hotspot_preview0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hotspot_preview0.ggCurrentLogicStateVisible = newLogicStateVisible; me._hotspot_preview0.style[domTransition]=''; if (me._hotspot_preview0.ggCurrentLogicStateVisible == 0) { me._hotspot_preview0.style.visibility=(Number(me._hotspot_preview0.style.opacity)>0||!me._hotspot_preview0.style.opacity)?'inherit':'hidden'; me._hotspot_preview0.ggVisible=true; } else { me._hotspot_preview0.style.visibility="hidden"; me._hotspot_preview0.ggVisible=false; } } } me._hotspot_preview0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } el=me._ht_preview_picture_frame_0=document.createElement('div'); el.ggId="ht_preview_picture_frame "; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.666667);'; hs+='border : 0px solid #000000;'; hs+='cursor : default;'; hs+='height : 100px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 150px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_preview_picture_frame_0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_preview_picture_frame_0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._hotspot_preview0.appendChild(me._ht_preview_picture_frame_0); el=me._ht_preview_nodeimage0=document.createElement('div'); els=me._ht_preview_nodeimage0__img=document.createElement('img'); els.className='ggskin ggskin_nodeimage'; els.setAttribute('src',basePath + "images/ht_preview_nodeimage_" + nodeId + ".jpg"); el.ggNodeId=nodeId; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_nodeimage'; els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="ht_preview_nodeImage"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_nodeimage "; el.ggType='nodeimage'; hs =''; hs+='height : 90px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 5px;'; hs+='visibility : inherit;'; hs+='width : 140px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='0% 0%'; me._ht_preview_nodeimage0.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return this.ggNodeId; } me._ht_preview_nodeimage0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._hotspot_preview0.appendChild(me._ht_preview_nodeimage0); el=me._ht_tooltip0=document.createElement('div'); els=me._ht_tooltip0__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="ht_tooltip"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='bottom : 5px;'; hs+='height : 20px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='visibility : inherit;'; hs+='width : 140px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='bottom: 0px;'; hs+='width: 140px;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background: #000000;'; hs+='background: rgba(0,0,0,0.392157);'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 2px 3px 2px 3px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=me.hotspot.title; el.appendChild(els); me._ht_tooltip0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_tooltip0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.hotspot.title == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_tooltip0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_tooltip0.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_tooltip0.style[domTransition]=''; if (me._ht_tooltip0.ggCurrentLogicStateVisible == 0) { me._ht_tooltip0.style.visibility="hidden"; me._ht_tooltip0.ggVisible=false; } else { me._ht_tooltip0.style.visibility=(Number(me._ht_tooltip0.style.opacity)>0||!me._ht_tooltip0.style.opacity)?'inherit':'hidden'; me._ht_tooltip0.ggVisible=true; } } } me._ht_tooltip0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._hotspot_preview0.appendChild(me._ht_tooltip0); el=me._ht_checkmark_tick0=document.createElement('div'); els=me._ht_checkmark_tick0__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSItMjQwIDMzMiAxMzAgMTMwIiB4PSIwcHgiIHk9IjBweCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAtMjQwIDMzMiAxMzAgMTMwOyIgaWQ9IkxheWVyXzEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3Ln'+ 'czLm9yZy8xOTk5L3hsaW5rIj4KIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+JiN4ZDsKCS5zdDB7ZmlsbDojMDAwMDAwO30mI3hkOwoJLnN0MXtmaWxsOiNGRkZGRkY7fSYjeGQ7Cjwvc3R5bGU+CiA8ZyBpZD0iTGF5ZXJfMV8xXyIvPgogPGcgaWQ9IkxheWVyXzIiPgogIDxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0tMTIyLjEsMzQxLjVoLTEwNS44Yy0xLjQsMC0yLjYsMS4xLTIuNiwyLjZ2MTA1LjhjMCwxLjQsMS4xLDIuNiwyLjYsMi42aDEwNS44YzEuNCwwLDIuNi0xLjEsMi42LTIuNlYzNDQuMSYjeGQ7JiN4YTsmI3g5OyYjeDk7Qy0xMTkuNiwzNDIuNy0xMjAuNywzNDEuNS0xMjIuMSwzNDEuNXog'+ 'TS0xMzIuOCwzODEuN2wtNTAuOCw1MC44Yy0wLjMsMC4zLTAuOCwwLjUtMS4yLDAuNWMtMC41LDAtMC45LTAuMS0xLjMtMC41bC0zMS43LTMxLjgmI3hkOyYjeGE7JiN4OTsmI3g5O2MtMC43LTAuNy0wLjctMS43LDAtMi40bDEyLjUtMTIuNWMwLjctMC43LDEuNy0wLjcsMi40LDBsMTgsMThsMzcuMS0zNy4xYzAuNy0wLjcsMS43LTAuNywyLjQsMGwxMi41LDEyLjUmI3hkOyYjeGE7JiN4OTsmI3g5O0MtMTMyLjEsMzc5LjktMTMyLjEsMzgxLTEzMi44LDM4MS43eiIvPgogIDxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0tMTQ3LjcsMzY2LjhsLTM3LjEsMzcuMWwtMTgtMThjLTAuNy0wLjctMS43LTAuNy'+ '0yLjQsMGwtMTIuNSwxMi41Yy0wLjcsMC43LTAuNywxLjcsMCwyLjRsMzEuNywzMS44JiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC4zLDAuMywwLjgsMC41LDEuMywwLjVjMC40LDAsMC45LTAuMiwxLjItMC41bDUwLjgtNTAuOWMwLjctMC43LDAuNy0xLjcsMC0yLjRsLTEyLjUtMTIuNUMtMTQ1LjksMzY2LjEtMTQ3LDM2Ni4xLTE0Ny43LDM2Ni44eiIvPgogPC9nPgo8L3N2Zz4K'; me._ht_checkmark_tick0__img.setAttribute('src',hs); els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="ht_checkmark_tick"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='height : 20px;'; hs+='position : absolute;'; hs+='right : 7px;'; hs+='top : 7px;'; hs+='visibility : hidden;'; hs+='width : 20px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_checkmark_tick0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_checkmark_tick0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.nodeVisited(me._ht_checkmark_tick0.ggElementNodeId()) == true)) || ((me._ht_checkmark_tick0.ggIsActive() == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_checkmark_tick0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_checkmark_tick0.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_checkmark_tick0.style[domTransition]=''; if (me._ht_checkmark_tick0.ggCurrentLogicStateVisible == 0) { me._ht_checkmark_tick0.style.visibility=(Number(me._ht_checkmark_tick0.style.opacity)>0||!me._ht_checkmark_tick0.style.opacity)?'inherit':'hidden'; me._ht_checkmark_tick0.ggVisible=true; } else { me._ht_checkmark_tick0.style.visibility="hidden"; me._ht_checkmark_tick0.ggVisible=false; } } } me._ht_checkmark_tick0.ggUpdatePosition=function (useTransition) { } me._hotspot_preview0.appendChild(me._ht_checkmark_tick0); me._ht_node.appendChild(me._hotspot_preview0); el=me._tt_ht_node0=document.createElement('div'); els=me._tt_ht_node0__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="tt_ht_node"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='z-index: 100;'; hs+='height : 20px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 24px;'; hs+='visibility : hidden;'; hs+='width : 100px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: auto;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background: #000000;'; hs+='background: rgba(0,0,0,0.666667);'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 2px 3px 2px 3px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=me.hotspot.title; el.appendChild(els); me._tt_ht_node0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._tt_ht_node0.logicBlock_position = function() { var newLogicStatePosition; if ( ((player.getHasTouch() == true)) ) { newLogicStatePosition = 0; } else { newLogicStatePosition = -1; } if (me._tt_ht_node0.ggCurrentLogicStatePosition != newLogicStatePosition) { me._tt_ht_node0.ggCurrentLogicStatePosition = newLogicStatePosition; me._tt_ht_node0.style[domTransition]='left 0s, top 0s'; if (me._tt_ht_node0.ggCurrentLogicStatePosition == 0) { this.ggDx = 0; me._tt_ht_node0.style.top='-47px'; me._tt_ht_node0.ggUpdatePosition(true); } else { me._tt_ht_node0.ggDx=0; me._tt_ht_node0.style.top='24px'; me._tt_ht_node0.ggUpdatePosition(true); } } } me._tt_ht_node0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.elementMouseOver['ht_node'] == true)) && ((me.hotspot.title != "")) && ((player.getIsTour() == false)) && ((player.getVariableValue('opt_hotspot_preview') == false)) ) { newLogicStateVisible = 0; } else if ( ((me.elementMouseOver['ht_node'] == true)) && ((me.hotspot.title != "")) && ((player.getIsTour() == true)) && ((player.getVariableValue('opt_hotspot_preview') == false)) ) { newLogicStateVisible = 1; } else if ( ((me.elementMouseOver['ht_node'] == true)) && ((me.hotspot.title != "")) && ((player.getIsTour() == false)) && ((player.getVariableValue('opt_hotspot_preview') == true)) ) { newLogicStateVisible = 2; } else { newLogicStateVisible = -1; } if (me._tt_ht_node0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._tt_ht_node0.ggCurrentLogicStateVisible = newLogicStateVisible; me._tt_ht_node0.style[domTransition]='left 0s, top 0s'; if (me._tt_ht_node0.ggCurrentLogicStateVisible == 0) { me._tt_ht_node0.style.visibility=(Number(me._tt_ht_node0.style.opacity)>0||!me._tt_ht_node0.style.opacity)?'inherit':'hidden'; me._tt_ht_node0.ggVisible=true; } else if (me._tt_ht_node0.ggCurrentLogicStateVisible == 1) { me._tt_ht_node0.style.visibility=(Number(me._tt_ht_node0.style.opacity)>0||!me._tt_ht_node0.style.opacity)?'inherit':'hidden'; me._tt_ht_node0.ggVisible=true; } else if (me._tt_ht_node0.ggCurrentLogicStateVisible == 2) { me._tt_ht_node0.style.visibility=(Number(me._tt_ht_node0.style.opacity)>0||!me._tt_ht_node0.style.opacity)?'inherit':'hidden'; me._tt_ht_node0.ggVisible=true; } else { me._tt_ht_node0.style.visibility="hidden"; me._tt_ht_node0.ggVisible=false; } } } me._tt_ht_node0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } this.style[domTransition]='left 0'; this.ggTextDiv.style.left=((98-this.ggTextDiv.offsetWidth)/2) + 'px'; } me._ht_node.appendChild(me._tt_ht_node0); el=me._ht_node_customimage0=document.createElement('div'); els=me._ht_node_customimage0__img=document.createElement('img'); els.className='ggskin ggskin_external'; els.setAttribute('style','position: absolute;-webkit-user-drag:none;pointer-events:none;;'); els.onload=function() {me._ht_node_customimage0.ggUpdatePosition();} if ((hotspot) && (hotspot.customimage)) { el.ggText=hotspot.customimage; els.setAttribute('src', hotspot.customimage); els.style.width=hotspot.customimagewidth + 'px'; els.style.height=hotspot.customimageheight + 'px'; me.ggUse3d = hotspot.use3D; me.gg3dDistance = hotspot.distance3D; } els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); hs =''; el.appendChild(els); el.ggSubElement = els; el.ggId="ht_node_CustomImage"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_external "; el.ggType='external'; hs =''; hs+='border : 0px solid #000000;'; hs+='cursor : pointer;'; hs+='height : 50px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -10000px;'; hs+='visibility : inherit;'; hs+='width : 50px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_node_customimage0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_node_customimage0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.hotspot.customimage == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_node_customimage0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_node_customimage0.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_node_customimage0.style[domTransition]=''; if (me._ht_node_customimage0.ggCurrentLogicStateVisible == 0) { me._ht_node_customimage0.style.visibility="hidden"; me._ht_node_customimage0__img.src = ''; me._ht_node_customimage0.ggVisible=false; } else { me._ht_node_customimage0.style.visibility=(Number(me._ht_node_customimage0.style.opacity)>0||!me._ht_node_customimage0.style.opacity)?'inherit':'hidden'; me._ht_node_customimage0.ggSubElement.src=me._ht_node_customimage0.ggText; me._ht_node_customimage0.ggVisible=true; } } } me._ht_node_customimage0.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; var ph=this.parentNode.clientHeight; var h=this.offsetHeight; this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } var parentWidth = me._ht_node_customimage0.clientWidth; var parentHeight = me._ht_node_customimage0.clientHeight; var img = me._ht_node_customimage0__img; var aspectRatioDiv = me._ht_node_customimage0.clientWidth / me._ht_node_customimage0.clientHeight; var aspectRatioImg = img.naturalWidth / img.naturalHeight; if (img.naturalWidth < parentWidth) parentWidth = img.naturalWidth; if (img.naturalHeight < parentHeight) parentHeight = img.naturalHeight; var currentWidth,currentHeight; if ((hotspot) && (hotspot.customimage)) { currentWidth = hotspot.customimagewidth; currentHeight = hotspot.customimageheight; } img.style.left='50%'; img.style.marginLeft='-' + currentWidth/2 + 'px'; img.style.top='50%'; img.style.marginTop='-' + currentHeight/2 + 'px'; } me._ht_node.appendChild(me._ht_node_customimage0); if ((hotspot) && (hotspot.customimage)) { el.style.width=hotspot.customimagewidth + 'px'; el.style.height=hotspot.customimageheight + 'px'; } me.__div = me._ht_node; }; function SkinHotspotClass_door(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown=[]; me.elementMouseOver=[]; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._door=document.createElement('div'); el.ggId="door"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='height : 0px;'; hs+='left : 75px;'; hs+='position : absolute;'; hs+='top : 130px;'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._door.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._door.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_userdata') == true)) || ((player.getVariableValue('vis_image_popup') == true)) || ((player.getVariableValue('vis_info_popup') == true)) || ((player.getVariableValue('vis_video_popup_file') == true)) || ((player.getVariableValue('vis_video_popup_url') == true)) || ((player.getVariableValue('vis_video_popup_vimeo') == true)) || ((player.getVariableValue('vis_video_popup_youtube') == true)) || ((player.getVariableValue('vis_website') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._door.ggCurrentLogicStateVisible != newLogicStateVisible) { me._door.ggCurrentLogicStateVisible = newLogicStateVisible; me._door.style[domTransition]=''; if (me._door.ggCurrentLogicStateVisible == 0) { me._door.style.visibility="hidden"; me._door.ggVisible=false; } else { me._door.style.visibility=(Number(me._door.style.opacity)>0||!me._door.style.opacity)?'inherit':'hidden'; me._door.ggVisible=true; } } } me._door.onclick=function (e) { player.openNext(me.hotspot.url,me.hotspot.target); skin.hotspotProxyClick(me.hotspot.id, me.hotspot.url); } me._door.ondblclick=function (e) { skin.hotspotProxyDoubleClick(me.hotspot.id, me.hotspot.url); } me._door.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['door']=true; me._hotspot_preview.logicBlock_visible(); me._tt_ht_node.logicBlock_visible(); skin.hotspotProxyOver(me.hotspot.id, me.hotspot.url); } me._door.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['door']=false; me._hotspot_preview.logicBlock_visible(); me._tt_ht_node.logicBlock_visible(); skin.hotspotProxyOut(me.hotspot.id, me.hotspot.url); } me._door.ontouchend=function (e) { me.elementMouseOver['door']=false; me._hotspot_preview.logicBlock_visible(); me._tt_ht_node.logicBlock_visible(); } me._door.ggUpdatePosition=function (useTransition) { } el=me._ht_node_visited=document.createElement('div'); els=me._ht_node_visited__img=document.createElement('img'); els.className='ggskin ggskin_ht_node_visited'; hs='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAgAElEQVR4nO2dfXQUVZr/n1vV3XkjIW8SXpIAIhAQFFgCi+EXRInjCg5rnAMyZM9ZZgQ5646wc1R0ZtEZdebMcdD5qeNvHHc9iMCMM4IuKCyLiAgygLxkQB0EXEHeQ3hJQl77pe7vj/RNbt++t6q6u7qruvt+zrmnKpXuqqeq61vPc+997i0AiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRGIPyG4D4oCZc8LR7hxjjAAgBwByASADANoB4DpCqCPafUqcSzIKJBE2Y4xxGQBMBYBRADAyWIZAtzAUznf8ANAEAF8DwLFg+RIAdiGEriXAZkkccLpAzNoXy3lgAIDz589nlZSUzEIIzUAI3QEAw2LYJ40GAH8FgO0A8N8AsAMhpF'+ 'm0b0kaggyKwilqNOX22293dXV1Tdc0bSXGuBknhjMY419hjEcn6oJKkp9IBEHf5K5gcXOKh1PcAOD+8Y9/nNXR0bFA07SvEiQKEdsxxnck6BpLkhAzomAFwRNABlUygyWLKZl33XVXTmtr68Oapp20WRgsezDG30nQNZdEgF11ENFxEWfJ2wbQW1Fmt3P3f/z48cobb7zx/6qqekvk5iaM/wKAJQih03YbIrEHI4/BegraQxBPkA3dzax9oLtFKS9Y+gZLPgAUkPLTn/50cGtr61sYY81uN2G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XPZ6SRyOlR5E'+ 'tE9eqjwvI5jODOa1VPHEwfMedH8Ii5EweR6B15DAC8/YTkcpjBTg/wNRysarsEt+xAAAAABJRU5ErkJggg=='; els.setAttribute('src',hs); els.ggNormalSrc=hs; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_button'; els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.appendChild(els); el.ggSubElement = els; el.ggId="ht_node_visited"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_button "; el.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 45px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -10000px;'; hs+='visibility : hidden;'; hs+='width : 45px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_node_visited.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_node_visited.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.nodeVisited(me._ht_node_visited.ggElementNodeId()) == true)) && ((me.hotspot.customimage == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_node_visited.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_node_visited.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_node_visited.style[domTransition]=''; if (me._ht_node_visited.ggCurrentLogicStateVisible == 0) { me._ht_node_visited.style.visibility=(Number(me._ht_node_visited.style.opacity)>0||!me._ht_node_visited.style.opacity)?'inherit':'hidden'; me._ht_node_visited.ggVisible=true; } else { me._ht_node_visited.style.visibility="hidden"; me._ht_node_visited.ggVisible=false; } } } me._ht_node_visited.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; var ph=this.parentNode.clientHeight; var h=this.offsetHeight; this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } } me._door.appendChild(me._ht_node_visited); el=me._ht_node_image=document.createElement('div'); els=me._ht_node_image__img=document.createElement('img'); els.className='ggskin ggskin_ht_node_image'; hs='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAgAElEQVR4nO2dfXQUVZr/n1vV3XkjIW8SXpIAIhAQFFgCi+EXRInjCg5rnAMyZM9ZZgQ5646wc1R0ZtEZdebMcdD5qeNvHHc9iMCMM4IuKCyLiAgygLxkQB0EXEHeQ3hJQl77pe7vj/RNbt++t6q6u7qruvt+zrmnKpXuqqeq61vPc+997i0AiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRGIPyG4D4oCZc8LR7hxjjAAgBwByASADANoB4DpCqCPafUqcSzIKJBE2Y4xxGQBMBYBRADAyWIZAtzAUznf8ANAEAF8DwLFg+RIAdiGEriXAZkkccLpAzNoXy3lgAIDz589nlZSUzEIIzUAI3QEAw2LYJ40GAH8FgO0A8N8AsAMhpF'+ 'm0b0kaggyKwilqNOX22293dXV1Tdc0bSXGuBknhjMY419hjEcn6oJKkp9IBEHf5K5gcXOKh1PcAOD+8Y9/nNXR0bFA07SvEiQKEdsxxnck6BpLkhAzomAFwRNABlUygyWLKZl33XVXTmtr68Oapp20WRgsezDG30nQNZdEgF11ENFxEWfJ2wbQW1Fmt3P3f/z48cobb7zx/6qqekvk5iaM/wKAJQih03YbIrEHI4/BegraQxBPkA3dzax9oLtFKS9Y+gZLPgAUkPLTn/50cGtr61sYY81uN2GSNozxMoyxmpifRKJHIj0I71h6XoEIR09UrKehPQ7s2LF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edH8Ii5EweR6B15DAC8/YTkcpjBTg/wNRysarsEt+xAAAAABJRU5ErkJggg=='; els.setAttribute('src',hs); els.ggNormalSrc=hs; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_button'; els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.appendChild(els); el.ggSubElement = els; el.ggId="ht_node_image"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_button "; el.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 45px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -10000px;'; hs+='visibility : inherit;'; hs+='width : 45px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_node_image.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_node_image.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.nodeVisited(me._ht_node_image.ggElementNodeId()) == true)) || ((me.hotspot.customimage != "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_node_image.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_node_image.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_node_image.style[domTransition]=''; if (me._ht_node_image.ggCurrentLogicStateVisible == 0) { me._ht_node_image.style.visibility="hidden"; me._ht_node_image.ggVisible=false; } else { me._ht_node_image.style.visibility=(Number(me._ht_node_image.style.opacity)>0||!me._ht_node_image.style.opacity)?'inherit':'hidden'; me._ht_node_image.ggVisible=true; } } } me._ht_node_image.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; var ph=this.parentNode.clientHeight; var h=this.offsetHeight; this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } } me._door.appendChild(me._ht_node_image); el=me._hotspot_preview=document.createElement('div'); el.ggId="hotspot_preview"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='z-index: 100;'; hs+='height : 100px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -130px;'; hs+='visibility : hidden;'; hs+='width : 150px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._hotspot_preview.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._hotspot_preview.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.elementMouseOver['door'] == true)) && ((player.getVariableValue('opt_hotspot_preview_1') == true)) && ((player.getIsTour() == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hotspot_preview.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hotspot_preview.ggCurrentLogicStateVisible = newLogicStateVisible; me._hotspot_preview.style[domTransition]=''; if (me._hotspot_preview.ggCurrentLogicStateVisible == 0) { me._hotspot_preview.style.visibility=(Number(me._hotspot_preview.style.opacity)>0||!me._hotspot_preview.style.opacity)?'inherit':'hidden'; me._hotspot_preview.ggVisible=true; } else { me._hotspot_preview.style.visibility="hidden"; me._hotspot_preview.ggVisible=false; } } } me._hotspot_preview.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } el=me._ht_preview_picture_frame_=document.createElement('div'); el.ggId="ht_preview_picture_frame "; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.666667);'; hs+='border : 0px solid #000000;'; hs+='cursor : default;'; hs+='height : 100px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 150px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_preview_picture_frame_.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_preview_picture_frame_.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._hotspot_preview.appendChild(me._ht_preview_picture_frame_); el=me._ht_preview_nodeimage=document.createElement('div'); els=me._ht_preview_nodeimage__img=document.createElement('img'); els.className='ggskin ggskin_nodeimage'; els.setAttribute('src',basePath + "images/ht_preview_nodeimage_" + nodeId + ".jpg"); el.ggNodeId=nodeId; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_nodeimage'; els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="ht_preview_nodeImage"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_nodeimage "; el.ggType='nodeimage'; hs =''; hs+='height : 90px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 5px;'; hs+='visibility : inherit;'; hs+='width : 140px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='0% 0%'; me._ht_preview_nodeimage.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return this.ggNodeId; } me._ht_preview_nodeimage.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._hotspot_preview.appendChild(me._ht_preview_nodeimage); el=me._ht_tooltip=document.createElement('div'); els=me._ht_tooltip__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="ht_tooltip"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='bottom : 5px;'; hs+='height : 20px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='visibility : inherit;'; hs+='width : 140px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='bottom: 0px;'; hs+='width: 140px;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background: #000000;'; hs+='background: rgba(0,0,0,0.392157);'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 2px 3px 2px 3px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=me.hotspot.title; el.appendChild(els); me._ht_tooltip.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_tooltip.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.hotspot.title == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_tooltip.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_tooltip.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_tooltip.style[domTransition]=''; if (me._ht_tooltip.ggCurrentLogicStateVisible == 0) { me._ht_tooltip.style.visibility="hidden"; me._ht_tooltip.ggVisible=false; } else { me._ht_tooltip.style.visibility=(Number(me._ht_tooltip.style.opacity)>0||!me._ht_tooltip.style.opacity)?'inherit':'hidden'; me._ht_tooltip.ggVisible=true; } } } me._ht_tooltip.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._hotspot_preview.appendChild(me._ht_tooltip); el=me._ht_checkmark_tick=document.createElement('div'); els=me._ht_checkmark_tick__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSItMjQwIDMzMiAxMzAgMTMwIiB4PSIwcHgiIHk9IjBweCIgc3R5bGU9ImVuYWJ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yLjQsMGwtMTIuNSwxMi41Yy0wLjcsMC43LTAuNywxLjcsMCwyLjRsMzEuNywzMS44JiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC4zLDAuMywwLjgsMC41LDEuMywwLjVjMC40LDAsMC45LTAuMiwxLjItMC41bDUwLjgtNTAuOWMwLjctMC43LDAuNy0xLjcsMC0yLjRsLTEyLjUtMTIuNUMtMTQ1LjksMzY2LjEtMTQ3LDM2Ni4xLTE0Ny43LDM2Ni44eiIvPgogPC9nPgo8L3N2Zz4K'; me._ht_checkmark_tick__img.setAttribute('src',hs); els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="ht_checkmark_tick"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='height : 20px;'; hs+='position : absolute;'; hs+='right : 7px;'; hs+='top : 7px;'; hs+='visibility : hidden;'; hs+='width : 20px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_checkmark_tick.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_checkmark_tick.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.nodeVisited(me._ht_checkmark_tick.ggElementNodeId()) == true)) || ((me._ht_checkmark_tick.ggIsActive() == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_checkmark_tick.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_checkmark_tick.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_checkmark_tick.style[domTransition]=''; if (me._ht_checkmark_tick.ggCurrentLogicStateVisible == 0) { me._ht_checkmark_tick.style.visibility=(Number(me._ht_checkmark_tick.style.opacity)>0||!me._ht_checkmark_tick.style.opacity)?'inherit':'hidden'; me._ht_checkmark_tick.ggVisible=true; } else { me._ht_checkmark_tick.style.visibility="hidden"; me._ht_checkmark_tick.ggVisible=false; } } } me._ht_checkmark_tick.ggUpdatePosition=function (useTransition) { } me._hotspot_preview.appendChild(me._ht_checkmark_tick); me._door.appendChild(me._hotspot_preview); el=me._tt_ht_node=document.createElement('div'); els=me._tt_ht_node__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="tt_ht_node"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='z-index: 100;'; hs+='height : 20px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 24px;'; hs+='visibility : hidden;'; hs+='width : 100px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: auto;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background: #000000;'; hs+='background: rgba(0,0,0,0.666667);'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 2px 3px 2px 3px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=me.hotspot.title; el.appendChild(els); me._tt_ht_node.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._tt_ht_node.logicBlock_position = function() { var newLogicStatePosition; if ( ((player.getHasTouch() == true)) ) { newLogicStatePosition = 0; } else { newLogicStatePosition = -1; } if (me._tt_ht_node.ggCurrentLogicStatePosition != newLogicStatePosition) { me._tt_ht_node.ggCurrentLogicStatePosition = newLogicStatePosition; me._tt_ht_node.style[domTransition]='left 0s, top 0s'; if (me._tt_ht_node.ggCurrentLogicStatePosition == 0) { this.ggDx = 0; me._tt_ht_node.style.top='-47px'; me._tt_ht_node.ggUpdatePosition(true); } else { me._tt_ht_node.ggDx=0; me._tt_ht_node.style.top='24px'; me._tt_ht_node.ggUpdatePosition(true); } } } me._tt_ht_node.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.elementMouseOver['door'] == true)) && ((me.hotspot.title != "")) && ((player.getIsTour() == false)) && ((player.getVariableValue('opt_hotspot_preview_1') == false)) ) { newLogicStateVisible = 0; } else if ( ((me.elementMouseOver['door'] == true)) && ((me.hotspot.title != "")) && ((player.getIsTour() == true)) && ((player.getVariableValue('opt_hotspot_preview_1') == false)) ) { newLogicStateVisible = 1; } else if ( ((me.elementMouseOver['door'] == true)) && ((me.hotspot.title != "")) && ((player.getIsTour() == false)) && ((player.getVariableValue('opt_hotspot_preview_1') == true)) ) { newLogicStateVisible = 2; } else { newLogicStateVisible = -1; } if (me._tt_ht_node.ggCurrentLogicStateVisible != newLogicStateVisible) { me._tt_ht_node.ggCurrentLogicStateVisible = newLogicStateVisible; me._tt_ht_node.style[domTransition]='left 0s, top 0s'; if (me._tt_ht_node.ggCurrentLogicStateVisible == 0) { me._tt_ht_node.style.visibility=(Number(me._tt_ht_node.style.opacity)>0||!me._tt_ht_node.style.opacity)?'inherit':'hidden'; me._tt_ht_node.ggVisible=true; } else if (me._tt_ht_node.ggCurrentLogicStateVisible == 1) { me._tt_ht_node.style.visibility=(Number(me._tt_ht_node.style.opacity)>0||!me._tt_ht_node.style.opacity)?'inherit':'hidden'; me._tt_ht_node.ggVisible=true; } else if (me._tt_ht_node.ggCurrentLogicStateVisible == 2) { me._tt_ht_node.style.visibility=(Number(me._tt_ht_node.style.opacity)>0||!me._tt_ht_node.style.opacity)?'inherit':'hidden'; me._tt_ht_node.ggVisible=true; } else { me._tt_ht_node.style.visibility="hidden"; me._tt_ht_node.ggVisible=false; } } } me._tt_ht_node.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } this.style[domTransition]='left 0'; this.ggTextDiv.style.left=((98-this.ggTextDiv.offsetWidth)/2) + 'px'; } me._door.appendChild(me._tt_ht_node); el=me._ht_node_customimage=document.createElement('div'); els=me._ht_node_customimage__img=document.createElement('img'); els.className='ggskin ggskin_external'; els.setAttribute('style','position: absolute;-webkit-user-drag:none;pointer-events:none;;'); els.onload=function() {me._ht_node_customimage.ggUpdatePosition();} if ((hotspot) && (hotspot.customimage)) { el.ggText=hotspot.customimage; els.setAttribute('src', hotspot.customimage); els.style.width=hotspot.customimagewidth + 'px'; els.style.height=hotspot.customimageheight + 'px'; me.ggUse3d = hotspot.use3D; me.gg3dDistance = hotspot.distance3D; } els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); hs =''; el.appendChild(els); el.ggSubElement = els; el.ggId="ht_node_CustomImage"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_external "; el.ggType='external'; hs =''; hs+='border : 0px solid #000000;'; hs+='cursor : pointer;'; hs+='height : 50px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : -10000px;'; hs+='visibility : inherit;'; hs+='width : 50px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._ht_node_customimage.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._ht_node_customimage.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.hotspot.customimage == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._ht_node_customimage.ggCurrentLogicStateVisible != newLogicStateVisible) { me._ht_node_customimage.ggCurrentLogicStateVisible = newLogicStateVisible; me._ht_node_customimage.style[domTransition]=''; if (me._ht_node_customimage.ggCurrentLogicStateVisible == 0) { me._ht_node_customimage.style.visibility="hidden"; me._ht_node_customimage__img.src = ''; me._ht_node_customimage.ggVisible=false; } else { me._ht_node_customimage.style.visibility=(Number(me._ht_node_customimage.style.opacity)>0||!me._ht_node_customimage.style.opacity)?'inherit':'hidden'; me._ht_node_customimage.ggSubElement.src=me._ht_node_customimage.ggText; me._ht_node_customimage.ggVisible=true; } } } me._ht_node_customimage.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; var ph=this.parentNode.clientHeight; var h=this.offsetHeight; this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } var parentWidth = me._ht_node_customimage.clientWidth; var parentHeight = me._ht_node_customimage.clientHeight; var img = me._ht_node_customimage__img; var aspectRatioDiv = me._ht_node_customimage.clientWidth / me._ht_node_customimage.clientHeight; var aspectRatioImg = img.naturalWidth / img.naturalHeight; if (img.naturalWidth < parentWidth) parentWidth = img.naturalWidth; if (img.naturalHeight < parentHeight) parentHeight = img.naturalHeight; var currentWidth,currentHeight; if ((hotspot) && (hotspot.customimage)) { currentWidth = hotspot.customimagewidth; currentHeight = hotspot.customimageheight; } img.style.left='50%'; img.style.marginLeft='-' + currentWidth/2 + 'px'; img.style.top='50%'; img.style.marginTop='-' + currentHeight/2 + 'px'; } me._door.appendChild(me._ht_node_customimage); if ((hotspot) && (hotspot.customimage)) { el.style.width=hotspot.customimagewidth + 'px'; el.style.height=hotspot.customimageheight + 'px'; } me.__div = me._door; }; me.addSkinHotspot=function(hotspot) { var hsinst = null; if (hotspot.skinid=='ht_node') { hotspot.skinid = 'ht_node'; hsinst = new SkinHotspotClass_ht_node(me, hotspot); if (!hotspotTemplates.hasOwnProperty(hotspot.skinid)) { hotspotTemplates[hotspot.skinid] = []; } hotspotTemplates[hotspot.skinid].push(hsinst); me.callChildLogicBlocksHotspot_ht_node_sizechanged();; me.callChildLogicBlocksHotspot_ht_node_changenode();; me.callChildLogicBlocksHotspot_ht_node_configloaded();; me.callChildLogicBlocksHotspot_ht_node_mouseover();; me.callChildLogicBlocksHotspot_ht_node_active();; me.callChildLogicBlocksHotspot_ht_node_changevisitednodes();; me.callChildLogicBlocksHotspot_ht_node_hastouch();; me.callChildLogicBlocksHotspot_ht_node_activehotspotchanged();; me.callChildLogicBlocksHotspot_ht_node_varchanged_opt_hotspot_preview();; } else { hotspot.skinid = 'door'; hsinst = new SkinHotspotClass_door(me, hotspot); if (!hotspotTemplates.hasOwnProperty(hotspot.skinid)) { hotspotTemplates[hotspot.skinid] = []; } hotspotTemplates[hotspot.skinid].push(hsinst); me.callChildLogicBlocksHotspot_door_sizechanged();; me.callChildLogicBlocksHotspot_door_changenode();; me.callChildLogicBlocksHotspot_door_configloaded();; me.callChildLogicBlocksHotspot_door_mouseover();; me.callChildLogicBlocksHotspot_door_active();; me.callChildLogicBlocksHotspot_door_changevisitednodes();; me.callChildLogicBlocksHotspot_door_hastouch();; me.callChildLogicBlocksHotspot_door_activehotspotchanged();; me.callChildLogicBlocksHotspot_door_varchanged_opt_hotspot_preview_1();; } return hsinst; } me.removeSkinHotspots=function() { if(hotspotTemplates['ht_node']) { var i; for(i = 0; i < hotspotTemplates['ht_node'].length; i++) { hotspotTemplates['ht_node'][i] = null; } } if(hotspotTemplates['door']) { var i; for(i = 0; i < hotspotTemplates['door'].length; i++) { hotspotTemplates['door'][i] = null; } } hotspotTemplates = []; } function SkinElement_map_pin_Class(parentScope,ggParent) { var me=this; var flag=false; me.parentScope=parentScope; me.ggParent=ggParent; var nodeId=ggParent.ggElementNodeId(); me.ggNodeId=nodeId; me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown=[]; me.elementMouseOver=[]; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._map_pin=document.createElement('div'); el.ggId="map_pin"; el.ggDx=-191; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='bottom : 380px;'; hs+='height : 41px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='visibility : inherit;'; hs+='width : 24px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._map_pin.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return me.ggNodeId; } me._map_pin.onclick=function (e) { if ( ( ((me._map_pin.ggIsActive() == false)) ) ) { player.openNext("{"+me.ggNodeId+"}",""); } if ( ( ((player.getVariableValue('vis_map_close_desktop') == true)) && ((player.getHasTouch() == false)) ) || ( ((player.getVariableValue('vis_map_close_mobile') == true)) && ((player.getHasTouch() == true)) ) ) { player.setVariableValue('vis_map', false); } } me._map_pin.onmouseover=function (e) { me.elementMouseOver['map_pin']=true; me._map_pin_tt.logicBlock_alpha(); } me._map_pin.onmouseout=function (e) { me.elementMouseOver['map_pin']=false; me._map_pin_tt.logicBlock_alpha(); } me._map_pin.ontouchend=function (e) { me.elementMouseOver['map_pin']=false; me._map_pin_tt.logicBlock_alpha(); } me._map_pin.ggUpdatePosition=function (useTransition) { } el=me._map_pin_normal=document.createElement('div'); els=me._map_pin_normal__img=document.createElement('img'); els.className='ggskin ggskin_map_pin_normal'; hs='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAYAAAAWy4frAAAP30lEQVR4nN2bfYzlV1nHP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bHABbyF58+yrWO/IbTYD901GsA/C9GVYNNoq0j2AAAAABJRU5ErkJggg=='; els.setAttribute('src',hs); els.ggNormalSrc=hs; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_image'; els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.appendChild(els); el.ggSubElement = els; el.ggId="map_pin_normal"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_image "; el.ggType='image'; hs =''; hs+='bottom : 0px;'; hs+='cursor : pointer;'; hs+='height : 25px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='visibility : inherit;'; hs+='width : 15px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 100%'; me._map_pin_normal.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._map_pin_normal.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['map_pin_normal'] == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._map_pin_normal.ggCurrentLogicStateScaling != newLogicStateScaling) { me._map_pin_normal.ggCurrentLogicStateScaling = newLogicStateScaling; me._map_pin_normal.style[domTransition]='' + cssPrefix + 'transform 200ms ease 0ms, opacity 500ms ease 0ms'; if (me._map_pin_normal.ggCurrentLogicStateScaling == 0) { me._map_pin_normal.ggParameter.sx = 1.1; me._map_pin_normal.ggParameter.sy = 1.1; me._map_pin_normal.style[domTransform]=parameterToTransform(me._map_pin_normal.ggParameter); } else { me._map_pin_normal.ggParameter.sx = 1; me._map_pin_normal.ggParameter.sy = 1; me._map_pin_normal.style[domTransform]=parameterToTransform(me._map_pin_normal.ggParameter); } } } me._map_pin_normal.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me._map_pin_normal.ggIsActive() == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._map_pin_normal.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._map_pin_normal.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._map_pin_normal.style[domTransition]='' + cssPrefix + 'transform 200ms ease 0ms, opacity 500ms ease 0ms'; if (me._map_pin_normal.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._map_pin_normal.style.opacity == 0.0) { me._map_pin_normal.style.visibility="hidden"; } }, 505); me._map_pin_normal.style.opacity=0; } else { me._map_pin_normal.style.visibility=me._map_pin_normal.ggVisible?'inherit':'hidden'; me._map_pin_normal.style.opacity=1; } } } me._map_pin_normal.onmouseover=function (e) { me.elementMouseOver['map_pin_normal']=true; me._map_pin_normal.logicBlock_scaling(); } me._map_pin_normal.onmouseout=function (e) { me.elementMouseOver['map_pin_normal']=false; me._map_pin_normal.logicBlock_scaling(); } me._map_pin_normal.ontouchend=function (e) { me.elementMouseOver['map_pin_normal']=false; me._map_pin_normal.logicBlock_scaling(); } me._map_pin_normal.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._map_pin.appendChild(me._map_pin_normal); el=me._map_pin_tt=document.createElement('div'); els=me._map_pin_tt__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="map_pin_tt"; el.ggDx=0; el.ggDy=38; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -10000px;'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : -10000px;'; hs+='visibility : hidden;'; hs+='width : 100px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: auto;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background: #ffffff;'; hs+='border: 0px solid #000000;'; hs+='color: #000000;'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 3px 0px 3px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=me.ggUserdata.title; el.appendChild(els); me._map_pin_tt.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._map_pin_tt.logicBlock_position = function() { var newLogicStatePosition; if ( ((player.getHasTouch() == true)) ) { newLogicStatePosition = 0; } else { newLogicStatePosition = -1; } if (me._map_pin_tt.ggCurrentLogicStatePosition != newLogicStatePosition) { me._map_pin_tt.ggCurrentLogicStatePosition = newLogicStatePosition; me._map_pin_tt.style[domTransition]='left 0s, top 0s, opacity 500ms ease 0ms'; if (me._map_pin_tt.ggCurrentLogicStatePosition == 0) { this.ggDx = 0; this.ggDy = -38; me._map_pin_tt.ggUpdatePosition(true); } else { me._map_pin_tt.ggDx=0; me._map_pin_tt.ggDy=38; me._map_pin_tt.ggUpdatePosition(true); } } } me._map_pin_tt.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['map_pin'] == true)) && ((me.ggUserdata.title != "")) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._map_pin_tt.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._map_pin_tt.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._map_pin_tt.style[domTransition]='left 0s, top 0s, opacity 500ms ease 0ms'; if (me._map_pin_tt.ggCurrentLogicStateAlpha == 0) { me._map_pin_tt.style.visibility=me._map_pin_tt.ggVisible?'inherit':'hidden'; me._map_pin_tt.style.opacity=1; } else { setTimeout(function() { if (me._map_pin_tt.style.opacity == 0.0) { me._map_pin_tt.style.visibility="hidden"; } }, 505); me._map_pin_tt.style.opacity=0; } } } me._map_pin_tt.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; var ph=this.parentNode.clientHeight; var h=this.offsetHeight; this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } this.style[domTransition]='left 0'; this.ggTextDiv.style.left=((98-this.ggTextDiv.offsetWidth)/2) + 'px'; } me._map_pin.appendChild(me._map_pin_tt); el=me._map_pin_active=document.createElement('div'); els=me._map_pin_active__img=document.createElement('img'); els.className='ggskin ggskin_map_pin_active'; hs='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAYAAAAWy4frAAATIUlEQVR4nMWba3Bcx3Xnf6e77wxmQFLiA5Yl0SQlK5JsQpJtWCJVVhKwnCwp26mkolBVydbWVqKqPKryIZ9clVQSM0pixS57vYmTKEqZ5Yo363VZeViJYlMVe4lNLJESRclLgqHEOLT4BgmAIDDPe293n3y4M8AIJEGAguSDupiZO7cf/z6nz/n36R7hOuTrO7EAjz5NAFAwz2299wNC/EiEB1DuBt1kRNYqCICARtVJkDcQXjPwkmKe377/0PcE4pXqXYrIUh5WMCPDw2bbyIgH2HP/+zeLMf9VhZ8xIu/rdxYAr5DHSFB9U3krQmIMrtNqwwei6lFRvqEx/u8dB/7tCMDe4WE3PDISuwCXFchTQ0PJrxw8mAP80wODHzaG3xL4mZXOSY6ShqgxBO'+ '+9F9UgghgRI7MtKKhGVTSKWHXOqbHWla2RBKHmvSp8I0Y+/fGXRl+e3+ZyAJ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noxLIarFIYFLWcb5tEXJmOKsFXxux78ePffy0FCyawk/RVpWINtGRvwuMNv3jT7bCvHbVWOsM8afbDVIQ+gcei60IRSn30606iiExEgy4/3ZUp9+HuDZeXmqdxQIzAUuNfK7aYxYMI3gOdsuNoq6nsoijGcpE3lKSUwsGQPI728bOVJ/6i1qA5aHfffQ/Hu+uiIxP1/3ITeQDK1aQ58xs87r1doUtRhCvzG2FePhh/eP3rsc7cMyaATmXKYYHq93aX6MerrdRBSswFja4lLIcVIcJxeV34HFLZoWI8sCpEsot+87/Brok/3WkBjjz2YtGsGTx8gbaZNEjK8aY1shfGfHi4ef2bVEYriQLAsQmKMu5cAfzhFKjafTFqfSFu0Y1DBLRX4b4P07dy7b'+ '9uSyAdnVIZTbDhwZAz5fEEoTxvKUU2mLkhjf76wE1b/uUpFHn376LXmqXlk2IDCXADdN87m6D2ecSCLFYWwFkroPWR7kU3D9VORqsqxABPTloaFk+6FDDVV9onOSIgr4lc4C+oVPHDh8/KmhoeR6qcjVZFmBwByhnNlw5C9mvD+WiDgRkhkfLpT7kj+CyzdplkOWHcgsoXyaICp/YI3QZwwon9428r1LyxH83mkRgD1bBl/bs3Xw1Pz7yy3LrpGuzBFKfQKV3+3cW1SO6nrkPwHZ1w2h+2jlNgAAAABJRU5ErkJggg=='; els.setAttribute('src',hs); els.ggNormalSrc=hs; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_image'; els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.appendChild(els); el.ggSubElement = els; el.ggId="map_pin_active"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_image "; el.ggType='image'; hs =''; hs+='bottom : 0px;'; hs+='cursor : pointer;'; hs+='height : 31px;'; hs+='left : -10000px;'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='visibility : hidden;'; hs+='width : 18px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 100%'; me._map_pin_active.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._map_pin_active.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['map_pin_active'] == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._map_pin_active.ggCurrentLogicStateScaling != newLogicStateScaling) { me._map_pin_active.ggCurrentLogicStateScaling = newLogicStateScaling; me._map_pin_active.style[domTransition]='' + cssPrefix + 'transform 200ms ease 0ms, opacity 500ms ease 0ms'; if (me._map_pin_active.ggCurrentLogicStateScaling == 0) { me._map_pin_active.ggParameter.sx = 1.1; me._map_pin_active.ggParameter.sy = 1.1; me._map_pin_active.style[domTransform]=parameterToTransform(me._map_pin_active.ggParameter); } else { me._map_pin_active.ggParameter.sx = 1; me._map_pin_active.ggParameter.sy = 1; me._map_pin_active.style[domTransform]=parameterToTransform(me._map_pin_active.ggParameter); } } } me._map_pin_active.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me._map_pin_active.ggIsActive() == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._map_pin_active.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._map_pin_active.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._map_pin_active.style[domTransition]='' + cssPrefix + 'transform 200ms ease 0ms, opacity 500ms ease 0ms'; if (me._map_pin_active.ggCurrentLogicStateAlpha == 0) { me._map_pin_active.style.visibility=me._map_pin_active.ggVisible?'inherit':'hidden'; me._map_pin_active.style.opacity=1; } else { setTimeout(function() { if (me._map_pin_active.style.opacity == 0.0) { me._map_pin_active.style.visibility="hidden"; } }, 505); me._map_pin_active.style.opacity=0; } } } me._map_pin_active.onmouseover=function (e) { me.elementMouseOver['map_pin_active']=true; me._map_pin_active.logicBlock_scaling(); } me._map_pin_active.onmouseout=function (e) { me.elementMouseOver['map_pin_active']=false; me._map_pin_active.logicBlock_scaling(); } me._map_pin_active.ontouchend=function (e) { me.elementMouseOver['map_pin_active']=false; me._map_pin_active.logicBlock_scaling(); } me._map_pin_active.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._map_pin.appendChild(me._map_pin_active); }; function SkinCloner_category_cloner_Class(item, parentScope,ggParent,parameter) { var me=this; var hs=''; me.parentScope=parentScope; me.ggParent=ggParent; me.findElements=skin.findElements; me.ggIndex=parameter.index; me.ggTag = item['tag']; me.ggTitle = item['title']; me.ggNodeCount = item['nodecount']; me.ggNodeId=item['firstnode']; me.ggUserdata=skin.player.getNodeUserdata(me.ggNodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.__div=document.createElement('div'); me.__div.setAttribute('style','position: absolute;width: 150px; height: 128px; visibility: inherit; overflow: visible;'); me.__div.style.left=parameter.left; me.__div.style.top=parameter.top; me.__div.style.width=parameter.width; me.__div.style.height=parameter.height; me.__div.ggIsActive = function() { var tags = player.userdata.tags; if (tags.indexOf(me.ggTag) == -1) return false; for(var i=0;i<me.ggParent.ggCurrentFilter.length;i++) { if (tags.indexOf(me.ggParent.ggCurrentFilter[i])==-1) return false; } return true; } me.__div.ggElementNodeId=function() { return me.ggNodeId; } el=me._node_cloner=document.createElement('div'); el.ggNumRepeat = 1; el.ggNumRows = 0; el.ggNumCols = 0; el.ggWidth = 141; el.ggHeight = 100; el.ggUpdating = false; el.ggFilter = []; el.ggInstances = []; me._node_cloner.callChildLogicBlocks_changenode = function(){ if(me._node_cloner.ggInstances) { var i; for(i = 0; i < me._node_cloner.ggInstances.length; i++) { if (me._node_cloner.ggInstances[i]._node_title && me._node_cloner.ggInstances[i]._node_title.logicBlock_visible) { me._node_cloner.ggInstances[i]._node_title.logicBlock_visible(); } } } } me._node_cloner.callChildLogicBlocks_mouseover = function(){ if(me._node_cloner.ggInstances) { var i; for(i = 0; i < me._node_cloner.ggInstances.length; i++) { if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); } } } } me._node_cloner.callChildLogicBlocks_active = function(){ if(me._node_cloner.ggInstances) { var i; for(i = 0; i < me._node_cloner.ggInstances.length; i++) { if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); } } } } me._node_cloner.callChildLogicBlocks_changevisitednodes = function(){ if(me._node_cloner.ggInstances) { var i; for(i = 0; i < me._node_cloner.ggInstances.length; i++) { if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); } } } } me._node_cloner.callChildLogicBlocks_activehotspotchanged = function(){ if(me._node_cloner.ggInstances) { var i; for(i = 0; i < me._node_cloner.ggInstances.length; i++) { if (me._node_cloner.ggInstances[i]._node_title && me._node_cloner.ggInstances[i]._node_title.logicBlock_visible) { me._node_cloner.ggInstances[i]._node_title.logicBlock_visible(); } } } } el.ggUpdate = function(filter) { if(me._node_cloner.ggUpdating == true) return; me._node_cloner.ggUpdating = true; var el=me._node_cloner; var curNumCols = 0; curNumCols = me._node_cloner.ggNumRepeat; if (curNumCols < 1) curNumCols = 1; if (typeof filter=='object') { el.ggFilter = filter; } else { filter = el.ggFilter; }; filter=filter.sort(); if ((el.ggNumCols == curNumCols) && (el.ggInstances.length > 0) && (filter.length === el.ggCurrentFilter.length) && (filter.every(function(value, index) { return value === el.ggCurrentFilter[index] }) )) { me._node_cloner.ggUpdating = false; return; } else { el.ggNumRows = 1; el.ggNumCols = curNumCols; } el.ggCurrentFilter = filter; el.ggInstances = []; if (el.hasChildNodes() == true) { while (el.firstChild) { el.removeChild(el.firstChild); } } var tourNodes = player.getNodeIds(); var row = 0; var column = 0; var currentIndex = 0; for (var i=0; i < tourNodes.length; i++) { var nodeId = tourNodes[i]; var passed = true; var nodeData = player.getNodeUserdata(nodeId); if (filter.length > 0) { for (var j=0; j < filter.length; j++) { if (nodeData['tags'].indexOf(filter[j]) == -1) passed = false; } } if (passed) { var parameter={}; parameter.top=(row * me._node_cloner.ggHeight) + 'px'; parameter.left=(column * me._node_cloner.ggWidth) + 'px'; parameter.width=me._node_cloner.ggWidth + 'px'; parameter.height=me._node_cloner.ggHeight + 'px'; parameter.index=currentIndex; parameter.title=nodeData['title']; var inst = new SkinCloner_node_cloner_Class(nodeId, me, el, parameter); currentIndex++; el.ggInstances.push(inst); el.appendChild(inst.__div); inst.__div.ggObj=inst; skin.updateSize(inst.__div); column++; if (column >= el.ggNumCols) { column = 0; row++; el.ggNumRows++; } } } me._node_cloner.callChildLogicBlocks_changenode(); me._node_cloner.callChildLogicBlocks_mouseover(); me._node_cloner.callChildLogicBlocks_active(); me._node_cloner.callChildLogicBlocks_changevisitednodes(); me._node_cloner.callChildLogicBlocks_activehotspotchanged(); me._node_cloner.ggUpdating = false; player.triggerEvent('clonerchanged'); if (me._node_cloner.parentNode.classList.contains('ggskin_subelement') && me._node_cloner.parentNode.parentNode.classList.contains('ggskin_scrollarea')) me._node_cloner.parentNode.parentNode.ggUpdatePosition(); } el.ggFilter = []; el.ggFilter[0] = "_nop_"; el.ggId="node_cloner"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_cloner "; el.ggType='cloner'; hs =''; hs+='height : 100px;'; hs+='left : -10000px;'; hs+='overflow : visible;'; hs+='position : absolute;'; hs+='top : 35px;'; hs+='visibility : inherit;'; hs+='width : 141px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._node_cloner.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._node_cloner.ggUpdateConditionNodeChange=function () { var cnode=player.getCurrentNode(); for(var i=0; i<me._node_cloner.childNodes.length; i++) { var child=me._node_cloner.childNodes[i]; if (child.ggObj && child.ggObj.ggNodeId==cnode) { var childOffX = child.offsetLeft; var childOffY = child.offsetTop; var p = child.parentElement; while (p != null && p!==this.divSkin) { if (p.ggType && p.ggType == 'scrollarea') { p.ggScrollIntoView(childOffX, childOffY, child.clientWidth, child.clientHeight); } childOffX += p.offsetLeft; childOffY += p.offsetTop; p = p.parentElement; } } } } me._node_cloner.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.ggWidth; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } me._node_cloner.ggUpdate(); } me._node_cloner.ggNodeChange=function () { me._node_cloner.ggUpdateConditionNodeChange(); } me.__div.appendChild(me._node_cloner); el=me._category=document.createElement('div'); els=me._category__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="category"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='cursor : pointer;'; hs+='height : 27px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='top : 4px;'; hs+='visibility : inherit;'; hs+='width : 141px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 141px;'; hs+='height: auto;'; hs+='background: #a1a1a1;'; hs+='border: 0px solid #ffffff;'; hs+='color: rgba(0,0,0,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 2px 1px 2px 1px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=me.ggTitle; el.appendChild(els); me._category.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._category.logicBlock_backgroundcolor = function() { var newLogicStateBackgroundColor; if ( ((me.elementMouseOver['category'] == true)) ) { newLogicStateBackgroundColor = 0; } else if ( ((player.getVariableValue('open_tag') == me.ggTag)) ) { newLogicStateBackgroundColor = 1; } else { newLogicStateBackgroundColor = -1; } if (me._category.ggCurrentLogicStateBackgroundColor != newLogicStateBackgroundColor) { me._category.ggCurrentLogicStateBackgroundColor = newLogicStateBackgroundColor; me._category__text.style[domTransition]='background-color 0s'; if (me._category.ggCurrentLogicStateBackgroundColor == 0) { me._category__text.style.backgroundColor="rgba(255,255,255,1)"; } else if (me._category.ggCurrentLogicStateBackgroundColor == 1) { me._category__text.style.backgroundColor="rgba(255,255,255,1)"; } else { me._category__text.style.backgroundColor="rgba(161,161,161,1)"; } } } me._category.onclick=function (e) { if ( ( ((player.getVariableValue('open_tag') == me.ggTag)) ) ) { player.setVariableValue('close_nodes', true); } if ( ( ((player.getVariableValue('open_tag') != me.ggTag)) ) ) { player.setVariableValue('close_nodes', false); } if ( ( ((player.getVariableValue('open_tag') != me.ggTag)) ) ) { player.setVariableValue('open_tag', me.ggTag); } if ( ( ((player.getVariableValue('close_nodes') == true)) ) ) { player.setVariableValue('open_tag', "_nop_"); } } me._category.onmouseover=function (e) { me.elementMouseOver['category']=true; me._category.logicBlock_backgroundcolor(); } me._category.onmouseout=function (e) { if (e && e.toElement) { var current = e.toElement; while (current = current.parentNode) { if (current == me._category__text) return; } } me.elementMouseOver['category']=false; me._category.logicBlock_backgroundcolor(); } me._category.ontouchend=function (e) { me.elementMouseOver['category']=false; me._category.logicBlock_backgroundcolor(); } me._category.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._category.ggNodeChange=function () { if ( ( ((me._category.ggIsActive() == true)) && ((player.getVariableValue('category_follow') == true)) ) ) { player.setVariableValue('open_tag', me.ggTag); } } me.__div.appendChild(me._category); me._node_cloner.style['display']='none'; var p = me._node_cloner.parentElement; while (p != null && p!==this.divSkin) { if (p.ggType && p.ggType == 'cloner') { if (p.ggAutoPosition) { p.ggAutoPosition(false); } } if (p.ggType && p.ggType == 'scrollarea') { if (p.ggUpdatePosition) { p.ggUpdatePosition(); } } p = p.parentElement; } skin.updateSize(me._node_cloner); me.event_varchanged_open_tag=function() {if ( ( ((player.getVariableValue('open_tag') != me.ggTag)) ) ) { me._node_cloner.ggText="_nop_"; if (me._node_cloner.ggText=='') { me._node_cloner.ggUpdate([]); } else { me._node_cloner.ggUpdate(me._node_cloner.ggText.split(',')); } skin.updateSize(skin.divSkin); } if ( ( ((player.getVariableValue('open_tag') != me.ggTag)) ) ) { me._node_cloner.style['display']='none'; var p = me._node_cloner.parentElement; while (p != null && p!==this.divSkin) { if (p.ggType && p.ggType == 'cloner') { if (p.ggAutoPosition) { p.ggAutoPosition(false); } } if (p.ggType && p.ggType == 'scrollarea') { if (p.ggUpdatePosition) { p.ggUpdatePosition(); } } p = p.parentElement; } skin.updateSize(me._node_cloner); } if ( ( ((player.getVariableValue('open_tag') == me.ggTag)) ) ) { me._node_cloner.ggText=me.ggTag; if (me._node_cloner.ggText=='') { me._node_cloner.ggUpdate([]); } else { me._node_cloner.ggUpdate(me._node_cloner.ggText.split(',')); } skin.updateSize(skin.divSkin); } if ( ( ((player.getVariableValue('open_tag') == me.ggTag)) ) ) { me._node_cloner.style['display']='inline'; var p = me._node_cloner.parentElement; while (p != null && p!==this.divSkin) { if (p.ggType && p.ggType == 'cloner') { if (p.ggAutoPosition) { p.ggAutoPosition(false); } } if (p.ggType && p.ggType == 'scrollarea') { if (p.ggUpdatePosition) { p.ggUpdatePosition(); } } p = p.parentElement; } skin.updateSize(me._node_cloner); }}; }; function SkinCloner_node_cloner_Class(nodeId, parentScope,ggParent,parameter) { var me=this; var hs=''; me.parentScope=parentScope; me.ggParent=ggParent; me.findElements=skin.findElements; me.ggIndex=parameter.index; me.ggNodeId=nodeId; me.ggTitle=parameter.title; me.ggUserdata=skin.player.getNodeUserdata(me.ggNodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.__div=document.createElement('div'); me.__div.setAttribute('style','position: absolute;width: 141px; height: 100px; visibility: inherit; overflow: visible;'); me.__div.style.left=parameter.left; me.__div.style.top=parameter.top; me.__div.style.width=parameter.width; me.__div.style.height=parameter.height; me.__div.ggIsActive = function() { return player.getCurrentNode()==me.ggNodeId; } me.__div.ggElementNodeId=function() { return me.ggNodeId; } el=me._node_image=document.createElement('div'); els=me._node_image__img=document.createElement('img'); els.className='ggskin ggskin_nodeimage'; els.setAttribute('src',basePath + "images/node_image_" + nodeId + ".jpg"); el.ggNodeId=nodeId; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); els.className='ggskin ggskin_nodeimage'; els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="node_image"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_nodeimage "; el.ggType='nodeimage'; hs =''; hs+='cursor : pointer;'; hs+='height : 90px;'; hs+='left : 0px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 141px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._node_image.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return this.ggNodeId; } me._node_image.onclick=function (e) { if ( ( ((me._node_image.ggIsActive() == false)) ) ) { player.openNext("{"+me.ggNodeId+"}",player.hotspot.target); } } me._node_image.onmouseover=function (e) { me.elementMouseOver['node_image']=true; me._node_visited.logicBlock_bordercolor(); } me._node_image.onmouseout=function (e) { me.elementMouseOver['node_image']=false; me._node_visited.logicBlock_bordercolor(); } me._node_image.ontouchend=function (e) { me.elementMouseOver['node_image']=false; me._node_visited.logicBlock_bordercolor(); } me._node_image.ggUpdatePosition=function (useTransition) { } el=me._node_title=document.createElement('div'); els=me._node_title__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="node_title"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='bottom : 0px;'; hs+='cursor : pointer;'; hs+='height : 20px;'; hs+='left : -10000px;'; hs+='position : absolute;'; hs+='visibility : inherit;'; hs+='width : 136px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 100%'; hs ='position:absolute;'; hs += 'box-sizing: border-box;'; hs+='left: 0px;'; hs+='bottom: 0px;'; hs+='width: 136px;'; hs+='height: auto;'; hs+='background: #000000;'; hs+='background: rgba(0,0,0,0.392157);'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 2px 1px 2px 1px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); els.innerHTML=me.ggUserdata.title; el.appendChild(els); me._node_title.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._node_title.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.ggUserdata.title == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._node_title.ggCurrentLogicStateVisible != newLogicStateVisible) { me._node_title.ggCurrentLogicStateVisible = newLogicStateVisible; me._node_title.style[domTransition]=''; if (me._node_title.ggCurrentLogicStateVisible == 0) { me._node_title.style.visibility="hidden"; me._node_title.ggVisible=false; } else { me._node_title.style.visibility=(Number(me._node_title.style.opacity)>0||!me._node_title.style.opacity)?'inherit':'hidden'; me._node_title.ggVisible=true; } } } me._node_title.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var pw=this.parentNode.clientWidth; var w=this.offsetWidth + 0; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } me._node_image.appendChild(me._node_title); el=me._node_visited=document.createElement('div'); el.ggId="node_visited"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #a1a1a1;'; hs+='cursor : default;'; hs+='height : 87px;'; hs+='left : 0px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 135px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; me._node_visited.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._node_visited.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me._node_visited.ggIsActive() == true)) ) { newLogicStateBorderColor = 0; } else if ( ((me.elementMouseOver['node_image'] == true)) ) { newLogicStateBorderColor = 1; } else if ( ((player.nodeVisited(me._node_visited.ggElementNodeId()) == true)) ) { newLogicStateBorderColor = 2; } else { newLogicStateBorderColor = -1; } if (me._node_visited.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._node_visited.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._node_visited.style[domTransition]='border-color 0s'; if (me._node_visited.ggCurrentLogicStateBorderColor == 0) { me._node_visited.style.borderColor="rgba(255,255,255,1)"; } else if (me._node_visited.ggCurrentLogicStateBorderColor == 1) { me._node_visited.style.borderColor="rgba(255,255,255,1)"; } else if (me._node_visited.ggCurrentLogicStateBorderColor == 2) { me._node_visited.style.borderColor="rgba(209,209,209,1)"; } else { me._node_visited.style.borderColor="rgba(161,161,161,1)"; } } } me._node_visited.ggUpdatePosition=function (useTransition) { } me._node_image.appendChild(me._node_visited); me.__div.appendChild(me._node_image); }; player.addListener('varchanged_open_tag', function() { var inst_j=skin; for(var i = 0; i < inst_j._category_cloner.ggInstances.length; i++) { var inst_i=inst_j._category_cloner.ggInstances[i]; inst_i.event_varchanged_open_tag(); } }); me.addSkin(); var style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode('.ggskin { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px;}')); document.head.appendChild(style); me._menu_background.logicBlock_alpha(); me._menu_open.logicBlock_position(); me._menu_open.logicBlock_alpha(); me._tt_togglemap.logicBlock_text(); me._button_close_map.logicBlock_visible(); me._map_container.logicBlock_visible(); me._map.logicBlock_visible(); me._tt_togglemap.logicBlock_position(); player.addListener('changenode', function(args) { me._menu_background.logicBlock_alpha();me._menu_open.logicBlock_position();me._menu_open.logicBlock_alpha();me._tt_togglemap.logicBlock_text();me._button_close_map.logicBlock_visible();me._map_container.logicBlock_visible();me._map.logicBlock_visible(); }); player.addListener('configloaded', function(args) { me._tt_togglemap.logicBlock_position(); }); player.addListener('hastouch', function(args) { me._tt_togglemap.logicBlock_position(); }); player.addListener('varchanged_category_visible', function(args) { me._menu_background.logicBlock_alpha();me._menu_open.logicBlock_position();me._menu_open.logicBlock_alpha(); }); player.addListener('varchanged_vis_map', function(args) { me._tt_togglemap.logicBlock_text();me._button_close_map.logicBlock_visible();me._map_container.logicBlock_visible();me._map.logicBlock_visible(); }); player.addListener('changenode', function(args) { me._category_cloner.callChildLogicBlocks_changenode(); }); player.addListener('mouseover', function(args) { me._category_cloner.callChildLogicBlocks_mouseover(); }); player.addListener('mouseover', function(args) { me._category_cloner.callChildLogicBlocks_mouseover(); }); player.addListener('changenode', function(args) { me._category_cloner.callChildLogicBlocks_active(); }); player.addListener('changevisitednodes', function(args) { me._category_cloner.callChildLogicBlocks_changevisitednodes(); }); player.addListener('activehotspotchanged', function(args) { me._category_cloner.callChildLogicBlocks_activehotspotchanged(); }); player.addListener('varchanged_open_tag', function(args) { me._category_cloner.callChildLogicBlocks_varchanged_open_tag(); }); player.addListener('changenode', function(args) { me._map.callChildLogicBlocksHotspot_map_pin_changenode(); }); player.addListener('configloaded', function(args) { me._map.callChildLogicBlocksHotspot_map_pin_configloaded(); }); player.addListener('mouseover', function(args) { me._map.callChildLogicBlocksHotspot_map_pin_mouseover(); }); player.addListener('mouseover', function(args) { me._map.callChildLogicBlocksHotspot_map_pin_mouseover(); }); player.addListener('changenode', function(args) { me._map.callChildLogicBlocksHotspot_map_pin_active(); }); player.addListener('hastouch', function(args) { me._map.callChildLogicBlocksHotspot_map_pin_hastouch(); }); player.addListener('activehotspotchanged', function(args) { me._map.callChildLogicBlocksHotspot_map_pin_activehotspotchanged(); }); player.addListener('sizechanged', function(args) { me.callChildLogicBlocksHotspot_ht_node_sizechanged();me.callChildLogicBlocksHotspot_door_sizechanged(); }); player.addListener('changenode', function(args) { me.callChildLogicBlocksHotspot_ht_node_changenode();me.callChildLogicBlocksHotspot_door_changenode(); }); player.addListener('configloaded', function(args) { me.callChildLogicBlocksHotspot_ht_node_configloaded();me.callChildLogicBlocksHotspot_door_configloaded(); }); player.addListener('mouseover', function(args) { me.callChildLogicBlocksHotspot_ht_node_mouseover();me.callChildLogicBlocksHotspot_door_mouseover(); }); player.addListener('changenode', function(args) { me.callChildLogicBlocksHotspot_ht_node_active();me.callChildLogicBlocksHotspot_door_active(); }); player.addListener('changevisitednodes', function(args) { me.callChildLogicBlocksHotspot_ht_node_changevisitednodes();me.callChildLogicBlocksHotspot_door_changevisitednodes(); }); player.addListener('hastouch', function(args) { me.callChildLogicBlocksHotspot_ht_node_hastouch();me.callChildLogicBlocksHotspot_door_hastouch(); }); player.addListener('activehotspotchanged', function(args) { me.callChildLogicBlocksHotspot_ht_node_activehotspotchanged();me.callChildLogicBlocksHotspot_door_activehotspotchanged(); }); player.addListener('varchanged_opt_hotspot_preview', function(args) { me.callChildLogicBlocksHotspot_ht_node_varchanged_opt_hotspot_preview(); }); player.addListener('varchanged_opt_hotspot_preview_1', function(args) { me.callChildLogicBlocksHotspot_door_varchanged_opt_hotspot_preview_1(); }); player.addListener('hotspotsremoved', function(args) { me.removeSkinHotspots(); }); me.skinTimerEvent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMapData() {\n TIME && console.time(\"createMapData\");\n\n const date = new Date();\n const dateString = date.getFullYear() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getDate();\n const license = \"File can be loaded in azgaar.github.io/Fantasy-Map-Generator\";\n const params = [version, licen...
[ "0.6127146", "0.60810655", "0.60735273", "0.60531527", "0.5839804", "0.5833477", "0.5803156", "0.58012915", "0.5794075", "0.5780153", "0.5767518", "0.57666206", "0.57666206", "0.5761928", "0.5757345", "0.575503", "0.57536465", "0.57487065", "0.57404727", "0.57384545", "0.5732...
0.0
-1
Initializes the particle system.
_initParticles() { this.particleSystem = ParticleHelper.CreateDefault(this.emitter); const noiseTexture = new NoiseProceduralTexture('perlin', 256, this.scene); noiseTexture.animationSpeedFactor = 5; noiseTexture.persistence = 2; noiseTexture.brightness = 0.5; noiseTexture.octaves = 5; this.particleSystem.noiseStrength = new Vector3(5, 10, 5); this.particleSystem.noiseTexture = noiseTexture; this.particleSystem.emitRate = 100; this.particleSystem.minEmitPower = 0.2; this.particleSystem.maxEmitPower = 0.2; this.particleSystem.updateSpeed = 0.005; this.particleSystem.minLifeTime = 0.4; this.particleSystem.maxLifeTime = 0.4; this.particleSystem.minSize = 0.02; this.particleSystem.maxSize = 0.02; this.particleSystem.colorDead = new Color4(0.2, 0.2, 0, 0); this.particleSystem.direction1 = new Vector3(-1, 4, 1); this.particleSystem.direction2 = new Vector3(1, 4, -1); this.particleSystem.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "init() {\n // create the particle system\n // this._ps = arbor.ParticleSystem(2000, 600, 0.5);\n this._ps = arbor.ParticleSystem({\n repulsion: 300,\n stiffness: 100,\n friction: 0.8,\n gravity: false,\n precision: 0.1\n });\n ...
[ "0.82625794", "0.7945603", "0.77174866", "0.7700926", "0.7538254", "0.7490843", "0.73518306", "0.7318591", "0.7236579", "0.7185333", "0.70615643", "0.7050185", "0.70317197", "0.6980145", "0.69656074", "0.6956201", "0.6918939", "0.68999267", "0.689449", "0.67757773", "0.676005...
0.72908306
8
it causes some flicker when reloading or navigating grid it may be possible to have some custom formatter to do this as the grid is being created to prevent this or go back to default browser checkbox styles for the grid
function styleCheckbox(table) { // // $(table).find('input:checkbox').addClass('ace') // .wrap('<label />') // .after('<span class="lbl align-top" />') // // // $('.ui-jqgrid-labels th[id*="_cb"]:first-child') // .find('input.cbox[type=checkbox]').addClass('ace') // .wrap('<label />').after('<span class="lbl align-top" />'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function superCheckboxFormatter (cellValue, options) {\n\t \t var op = $.extend({}, $.jgrid.formatter.checkbox, options.colModel.formatoptions);\n\t \t if ($.fmatter.isEmpty(cellValue) || cellValue === undefined) {\n\t \t cellValue = $.fn.fmatter.defaultFormat(cellValue, op);\n\t \t }\n\t \t cellValue = ...
[ "0.64998055", "0.64721996", "0.6372296", "0.6372296", "0.63069594", "0.62940776", "0.628429", "0.62549555", "0.6213798", "0.6180616", "0.61690843", "0.6144689", "0.6074379", "0.605421", "0.6004794", "0.599926", "0.5991417", "0.5983378", "0.5929514", "0.5929514", "0.58710074",...
0.6339623
4
var random=false; var prev_position = new THREE.Vector3();
function MoveMissile() { //workflow is as follows.for each missile, move it towards its target, check for collision. for(i=0;i<Model.children.length;i++)//for every missile { //move towards target current_position = Model.children[i].position; prev_position=current_position.clone(); //calculate the direction vector and move along it. var j = UpdateTarget(); //returns one of the buildings if(current_position.y>Building_position[j].y) { if(current_position.distanceToSquared(Building_position[j]) < 250*250) //if on screen { //calculate direction vector to target destination = Building_position[j].clone(); direction = destination.sub(current_position); direction.multiplyScalar(speed); direction.normalize(); //console.log(direction); Model.children[i].position.x += direction.x; Model.children[i].position.y += direction.y; Model.children[i].position.z += direction.z; Model.children[i].rotation.y += delta;//clock.getDelta(); //var linematerial = new THREE.LineBasicMaterial({ color: 0xFFFFFF }); //var linegeometry = new THREE.Geometry(); //linegeometry.vertices.push(prev_position); //linegeometry.vertices.push(current_position); //linegeometry.vertices.push(destination); //scene.add(new THREE.Line(linegeometry,linematerial)); } else //off screen { Model.children[i].position.y -= 0.5*level*0.5; // just move down } } else //off screen { Model.children[i].position.y -= 0.5*level*0.5; // just move down } //check collision too current_position = Model.children[i].position; checkCollisionBuilding(current_position); }//end for every missile }//end move missile
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Start()\n{\n\tif (Enabled)\n\t{\n\t\ttransform.localPosition = Vector3(Random.Range(-1,2),Random.Range(-1,2),Random.Range(-1,2));\n\t\tif(transform.localPosition.x == 0)\n\t\t{\n\t\t\txT = false;\n\t\t}\n\t\tif(transform.localPosition.y == 0)\n\t\t{\n\t\t\tyT = false;\n\t\t}\n\t\tif(transform.localPositio...
[ "0.71546096", "0.6877669", "0.6810479", "0.66325814", "0.6629358", "0.66093755", "0.6525417", "0.6525417", "0.6521387", "0.6508836", "0.6502563", "0.64927715", "0.6463925", "0.6438476", "0.6423247", "0.6412712", "0.6397419", "0.63906306", "0.6370468", "0.6353247", "0.6337002"...
0.0
-1
Passing to joke to Speech RSS API
function tellMeTheJoke(joke){ VoiceRSS.speech({ key: myApiKey, src: joke, hl: 'en-us', v: 'Linda', r: 0, c: 'mp3', f: '44khz_16bit_stereo', ssml: false }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tellJoke(){\n VoiceRSS.speech({\n key: ttsKey,\n src: ttsText,\n hl: 'en-au',\n v: 'Isla',\n r: 0, \n c: 'mp3',\n f: '44khz_16bit_stereo',\n ssml: false \n });\n}", "function tellMe(joke) {\n console.log(\"tell me:\", joke);\n VoiceRSS.spee...
[ "0.6840803", "0.66703016", "0.6548111", "0.5944141", "0.58900213", "0.5836894", "0.5807144", "0.5767292", "0.57666403", "0.5684609", "0.56813335", "0.56622195", "0.56609184", "0.5648582", "0.56401145", "0.56367505", "0.5625478", "0.5609449", "0.55985266", "0.5562859", "0.5534...
0.6842132
0
Get jokes from joke API
async function getJoke(){ toggleButton(); try { const res = await fetch(jokeURL); const data = await res.json(); let joke = ''; if ('setup' in data && 'delivery'){ joke = data.setup + ' ... ' + data.delivery; } else { joke = data.joke; } tellMeTheJoke(joke); } catch (err) { console.log(err); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getJokes() {\n $.ajax({\n method: 'GET',\n url: '/jokes',\n })\n .then(result => {\n console.log('GET /jokes', result);\n\n \n // send jokes list to the dom\n $('#allJokes').empty();\n for (let jokes of result) {\n\n $('#allJokes').append(`\...
[ "0.73292893", "0.72689706", "0.715446", "0.71330315", "0.71142554", "0.69025826", "0.68688405", "0.68509126", "0.67470413", "0.6646443", "0.66440934", "0.6629793", "0.65321475", "0.6452946", "0.6375124", "0.6306058", "0.62964636", "0.6296172", "0.6245104", "0.6237225", "0.622...
0.6011226
25
Disable and Enable Button element
function toggleButton(){ button.disabled = !button.disabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function btnDisable(button) {\n button.button('disable');\n button.button('refresh');\n}", "function enableButton ( button ){\n button.disabled = false;\n}", "function disableBtn() {\n // document.getElementById(idElement).disabled = true;\n $uWbuttonEdit.disabled = true;\n $uWbuttonEdi...
[ "0.80488175", "0.78004134", "0.7714082", "0.7626993", "0.7622682", "0.76199156", "0.7603043", "0.75771976", "0.75141704", "0.74795157", "0.746963", "0.74542373", "0.7453997", "0.74505246", "0.74417585", "0.74384075", "0.74019945", "0.73845553", "0.73673284", "0.7361207", "0.7...
0.761697
6
instance of Game splash
function buildSplash() { splashMain = buildDom(` <main> <h1>Up or Down<h1> <button>Start</button> </main> `); document.body.appendChild(splashMain); splashMain.querySelector('button').addEventListener('click',startGame) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load_splash_screen() {\n\t// Splash screen load\n\tgame.load.image(\"logoGhost\",\"mlib/logo-ghost.png\");\n\tgame.load.image(\"logoWords\",\"mlib/logo-words.png\");\n\tgame.load.audio(\"splash\",\"sounds/splash.wav\");\n}", "function splash() {\n document.querySelector(\".splash\").classList.add(\"ani...
[ "0.69057953", "0.6795321", "0.6630153", "0.6519345", "0.64929885", "0.63703966", "0.63477874", "0.6333614", "0.63237166", "0.62937236", "0.62575144", "0.62440616", "0.62297744", "0.62024987", "0.6186611", "0.6183351", "0.6155391", "0.6153008", "0.61397016", "0.61388963", "0.6...
0.65398103
3
when admin user clicks 'delete' button to delete an existing listing, they are confirmed.
function ConfirmDeleteImage(listing_id,img_id,new_listing){ if(confirm('Are you sure you wish to delete this image?')){ // if confirmed, call deletion script and send provided 'listing_id' if(new_listing == 'TRUE'){ window.location.href='delete.php?new_listing=' + new_listing + '&listing_id=' + listing_id + '&img_id=' + img_id + '&make_default=FALSE'; } else { window.location.href='delete.php?listing_id=' + listing_id + '&img_id=' + img_id; } } else{ // if user clicks cancel to delete prompt, return to page without refresh return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initDelete() {\n\t\t\t$list.find('[aria-click=\"delete\"]').on('click', function () {\n\t\t\t\tvar $item = $(this).closest('.item');\n\n\t\t\t\tpopupPrompt({\n\t\t\t\t\ttitle: _t.form.confirm_title,\n\t\t\t\t\tcontent: _t.investor.view.manager.delete_confirm,\n\t\t\t\t\ttype: 'warning',\n\t\t\t\t\tbuttons...
[ "0.73427", "0.6844235", "0.6839344", "0.68187314", "0.68048203", "0.6802416", "0.6770685", "0.6704825", "0.67038465", "0.66640794", "0.6643851", "0.6621775", "0.6617299", "0.66139954", "0.6608275", "0.6572669", "0.654716", "0.6539653", "0.6516616", "0.6500841", "0.6491672", ...
0.612244
70
when admin user clicks 'delete' button to delete an existing images, they are confirmed.
function ConfirmDelete(listing_id){ if(confirm('Warning: If you delete this listing, all images associated with it will also be deleted. Are you sure you wish to continue?')){ // if confirmed, call deletion script and send provided 'listing_id' window.location.href='delete.php?listing_id=' + listing_id; } else{ // if user clicks cancel to delete prompt, return to page without refresh return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function confirmDelete(){\r\n\t\tvar links = find(\"//img[contains(@src, 'del.gif')]\", XPList);\r\n\t\tfor (var i = 0; i < links.snapshotLength; i++){\r\n\t\t\tlinks.snapshotItem(i).setAttribute('onClick', 'javascript:return confirm(\"' + T('SEGURO') + '\");');\r\n\t\t}\r\n\t}", "function confirmDeleteEmail() {...
[ "0.73505056", "0.7154907", "0.7125974", "0.6904893", "0.68616456", "0.67767936", "0.675175", "0.6746853", "0.6685705", "0.6658984", "0.6644175", "0.6624414", "0.6595184", "0.65240294", "0.65072536", "0.6506419", "0.6501779", "0.6495363", "0.6477792", "0.645771", "0.64557064",...
0.62862325
36
import Profile from './Profile';
function App() { var info=Data.profiles; // ReactDom.render(<p>Hello </p>,document.getElementById('header')) // let array=['abc','adf',"asdfa","dsafd","erew","etrwaw"]; // let array2=["dteaf","derawe","ewrwwr","rewewwas","eretty","erwertw"] return ( <section> <BrowserRouter> <header className="header"> {info.map((k,l)=>( <Link to={{pathname:"/profile",data:{id:l}}}>{"Profile"+(l+1)+" "}</Link> ))} </header><br></br><br></br> <Route exact path="/profile" component={Profile}> </Route> <Route exact path="/mydemo" component={home}></Route> </BrowserRouter> </section> ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Profile() {\n _classCallCheck(this, Profile);\n\n Profile.initialize(this);\n }", "profile() {\n return this.hasOne('App/Models/Profile')\n }", "function Profile() {\n\t}", "static get table() {\n return 'profile';\n }", "function Profile() {\n return (\n <div>\n ...
[ "0.63977474", "0.6282286", "0.61902213", "0.60845137", "0.6077984", "0.58908457", "0.5853206", "0.5831238", "0.5828792", "0.5823965", "0.5823965", "0.58133155", "0.58072037", "0.5796108", "0.57790285", "0.5755934", "0.569935", "0.569637", "0.5651767", "0.56429577", "0.562991"...
0.0
-1
The route registering function:
function route (path, templateId) { routes[path] = {templateId: templateId}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerRoutes() {\n this.get(`/`, `version`);\n\n // Register routes for branch resources\n this.get(`/branches`, `branch-data`);\n this.get(`/branches/:id`, `branch-find`);\n this.post(`/branches`, `branch-create`);\n\n // Register routes for sales resource\n this.get(`/sales`, `sales-data`)...
[ "0.7404807", "0.7294004", "0.7227051", "0.7136497", "0.6994476", "0.6840534", "0.68400997", "0.6769793", "0.6748991", "0.6724563", "0.6687676", "0.66532266", "0.66428983", "0.66064906", "0.6555248", "0.6539281", "0.65020996", "0.6495237", "0.6487379", "0.6402853", "0.63700914...
0.58108765
91
Create a new function which calls .val on input change.
function createChangeHandler ( trigger ) { return function ( ignore, value ){ // Determine which array position to 'null' based on 'trigger'. $Target.val( [ trigger ? null : value, trigger ? value : null ], true ); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function v(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger(\"change\")}}", "function v(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger(\"change\")}}", "onChang...
[ "0.71654373", "0.71450627", "0.69299656", "0.69157845", "0.69065094", "0.69065094", "0.6887523", "0.68811125", "0.68323565", "0.68323565", "0.68323565", "0.68323565", "0.68323565", "0.68323565", "0.68323565", "0.68323565", "0.68218446", "0.67875654", "0.67875654", "0.67875654",...
0.0
-1
Called by libLink when it wants a set of links updated.
function linkUpdate ( flag ) { var trigger = $.inArray(flag, triggerPos); // The API might not have been set yet. if ( $Target[0].linkAPI && $Target[0].linkAPI[flag] ) { $Target[0].linkAPI[flag].change( $Values[trigger], $Handles[trigger].children(), $Target ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateLinks()\n\t{\n\t\tconsole.log(\"All appended link text updated\");\n\t\t$(\"a.appended\").each(function()\n\t\t{\n\t\t\tif(savedTopics.hasOwnProperty(this.id))\n\t\t\t{\n\t\t\t\t$(this).text(\"x\");\n\t\t\t\t$(this).prev().css(\"font-style\", \"italic\");\n\t\t\t\tconsole.log(\"Found \" + this.id + ...
[ "0.6786777", "0.67369604", "0.668407", "0.66618705", "0.6616811", "0.66144043", "0.65965956", "0.65565187", "0.63854855", "0.6357836", "0.63117397", "0.63044065", "0.6299647", "0.62364334", "0.62187046", "0.6198232", "0.6190903", "0.6182945", "0.6181137", "0.6172298", "0.6165...
0.66877526
2
Called by libLink to append an element to the slider.
function linkConfirm ( flag, element ) { // Find the trigger for the passed flag. var trigger = $.inArray(flag, triggerPos); // If set, append the element to the handle it belongs to. if ( element ) { element.appendTo( $Handles[trigger].children() ); } // The public API is reversed for rtl sliders, so the changeHandler // should not be aware of the inverted trigger positions. // On rtl slider with one handle, 'lower' should be used. if ( options.dir && options.handles > 1 ) { trigger = trigger === 1 ? 0 : 1; } return createChangeHandler( trigger ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function appendSlide(elem) {\n $conf.slides.push(elem);\n $conf.slider.appendChild(elem);\n $elems.dots = buildPager($conf.pager.wrap);\n alignToActiveSlide();\n }", "_spawn() {\n const parentElement = document.querySelector(this.parentSelector);\n parentElement.app...
[ "0.7195765", "0.64529365", "0.6101963", "0.5950092", "0.59060186", "0.59060186", "0.59060186", "0.59021723", "0.5848832", "0.581924", "0.5809723", "0.5801779", "0.5789639", "0.5787788", "0.57735515", "0.57638395", "0.57516086", "0.5729342", "0.57179165", "0.57179165", "0.5717...
0.0
-1
Place elements back on the slider.
function reAppendLink ( ) { var i, flag; // The API keeps a list of elements: we can re-append them on rebuild. for ( i = 0; i < triggerPos.length; i += 1 ) { if ( this.linkAPI && this.linkAPI[(flag = triggerPos[i])] ) { this.linkAPI[flag].reconfirm(flag); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveImgBack(){\n\tif (currentImg == 0){\n\t\t currentImg = imgList.length -1;\n\t}else {\n\t\tcurrentImg--;\n\t};\n\n\tpaneSlide();\n\t\n}", "function moveBack() {\n $slideContainer.css({'margin-left': '-='+width});\n --currentSlide;\n if (currentSlide === -$slides.length+2) {\n ...
[ "0.6407685", "0.63774407", "0.6338646", "0.6252188", "0.6111707", "0.6099853", "0.6034435", "0.60037655", "0.60012996", "0.5994763", "0.5966409", "0.5949187", "0.59307194", "0.58784026", "0.5865213", "0.583919", "0.5833935", "0.5810561", "0.577209", "0.5766988", "0.5721393", ...
0.0
-1
will only return renderComponent() if user and project in state are not empty
render() { return this.state.user && this.state.project ? (this.renderComponent()) : (null) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "render() {\n const { user, isLoading } = this.props.auth;\n\n if (isLoading) {\n return <h2>Loading...</h2>;\n }\n // If not logged in, or not an admin\n else if (!user || !user.admin) {\n return <h2>Access Denied</h2>\n }\n // If an admin, loa...
[ "0.69052917", "0.6794691", "0.65550876", "0.65221965", "0.6459171", "0.64046776", "0.63583696", "0.62141234", "0.6169709", "0.61350214", "0.60774046", "0.60668135", "0.6029844", "0.6024428", "0.60036284", "0.60029817", "0.6000732", "0.5994649", "0.5980764", "0.5979243", "0.59...
0.8589135
0
easily recognized function that performs ajax request to yelp
function updateYelpResults() { yelpAjax(searchFor(), searchNear()); // get all the needed info }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yelpAjax(searchFor, searchNear) {\n\n /*\n *\tKeys and other tokens needed to access the Yelp API via OAuth\n *\tIn a non-Udacious scenario this would have to be moved\n * to a server side script and therefore actually be \"secret\"\n */\n\n var auth = {\n consumerKey: \"2M-JW...
[ "0.80259824", "0.7259638", "0.71454036", "0.7136725", "0.6946509", "0.6932895", "0.6802767", "0.67177415", "0.667314", "0.6638775", "0.6633248", "0.6614379", "0.6594534", "0.65781236", "0.65308106", "0.6443712", "0.6391026", "0.6384631", "0.63841033", "0.63374674", "0.6321644...
0.73869216
1
The filter and functions
function filterInputField() { // ensure emtpy lists nameList = []; // for names filteredList = []; // for matches filterField(filterField().toLowerCase()); // force the case on the search for (var card in resultList()) { nameList.push({ 'index': card, // store index 'name': resultList()[card].name().toLowerCase(), // grab name as string 'description': resultList()[card].description().toLowerCase() // grabs description as string }); } for (var name in nameList) { if (nameList[name].name.includes(filterField()) || nameList[name].description.includes(filterField())) { // if a name or description contains the search variable... filteredList.push(resultList()[nameList[name].index]); // put it in filtered List } } if (filteredList.length >= 1) { // if something in filtered List resultList(filteredList); // put that on the board + map prepMap(); } else { // otherwise /* ------ Throw error message ------ */ /* --- Clean up the old lists --- */ resultList.removeAll(); // empty the resultList clearAllMarkers(); // clears marker array /* --- Display the error message + Beacon --- */ resultList.push(new placeCard(noMatchFilterResponse[0])); /* --- clean up the view --- */ initMap(); // refresh and reconstruct map OpenInfowindowForMarker(0); // open first infoWindow forceTop(); // ensure DOM is scrolled to top } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "filter() {\n\t}", "filter() {\n\t}", "function filter() {\n \n}", "function filterFunction() {\n \n}", "function filter(field, value)\n {\n \n }", "removeAllFilters() {}", "filterProducts() {\n // Crear copia\n let toFilter = [...this.productsArray];\n\n // Se pasa el ...
[ "0.83419424", "0.83419424", "0.83025974", "0.78336185", "0.67924076", "0.67912364", "0.66271085", "0.66101545", "0.65988916", "0.65926564", "0.6573111", "0.65627456", "0.65618825", "0.6508305", "0.650053", "0.650053", "0.6494922", "0.6458889", "0.6451131", "0.6450929", "0.644...
0.0
-1
The following functions handle requests to Yelp
function yelpAjax(searchFor, searchNear) { /* * Keys and other tokens needed to access the Yelp API via OAuth * In a non-Udacious scenario this would have to be moved * to a server side script and therefore actually be "secret" */ var auth = { consumerKey: "2M-JWI9l8UBCt3vm0R6vZg", consumerSecret: "2TIm_ve4y6unTQR2D1HGnWTjFOM", accessToken: "p44DAD9S6MecSv66hmrdR3qdJZhVkg7o", accessTokenSecret: "rhnGNKjrDKMLZT0aRET8qIA-aWQ", serviceProvider: { signatureMethod: "HMAC-SHA1" // found here https://www.yelp.com/developers/documentation/v2/authentication } }; /* * Grab the "secret" part of the auth keys and put them in an object * that will then be passed on to the coming OAuth.SignatureMethod */ var accessor = { consumerSecret: auth.consumerSecret, tokenSecret: auth.accessTokenSecret }; /* * Create an array of parameters to handoff to message object that follows * This helps keep things more bite-sized... */ var parameters = [ ['term', searchFor], ['location', searchNear], ['callback', 'cb'], ['sort', 2], // '2' sorts results by rating ['limit', 15], // limits results to top 15 ['oauth_consumer_key', auth.consumerKey], ['oauth_consumer_secret', auth.consumerSecret], ['oauth_token', auth.accessToken], ['oauth_signature_method', auth.serviceProvider.signatureMethod] ]; /* * This message object is to be fi#EE8060 to Yelp as part of then * OAuth.setTimestampAndNonce TODO: someday make this server-side */ var message = { 'action': 'http://api.yelp.com/v2/search', 'method': 'GET', 'parameters': parameters }; /* * Vitrually sign and send things as part of OAuth JS Magic */ OAuth.setTimestampAndNonce(message); OAuth.SignatureMethod.sign(message, accessor); var parameterMap = OAuth.getParameterMap(message.parameters); yJax(message.action, parameterMap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callYelp() {\r\n 'use strict';\r\n\r\n //Nonce generator to generate a random number.\r\n function nonce_generate() {\r\n return (Math.floor(Math.random() * 1e12).toString());\r\n }\r\n\r\n var yelp_url = 'https://api.yelp.com/v2/search';\r\n\r\n //Yelp parameters.\r\n var para...
[ "0.7760285", "0.75397253", "0.7328289", "0.7006755", "0.6989393", "0.6971666", "0.68842804", "0.681383", "0.6774153", "0.6740801", "0.6709426", "0.66633034", "0.66506684", "0.6645194", "0.663159", "0.66217446", "0.66199636", "0.6606548", "0.65979207", "0.6595956", "0.65945786...
0.72528106
3
Ajax OAuth method GETs data from Yelp API
function yJax(url, yData) { $.ajax({ 'timeout': 3000, 'type': 'GET', 'url': url, 'data': yData, 'dataType': 'jsonp', 'global': true, 'cache': true, 'jsonpCallback': 'cb', 'success': function(data) { makeYelpList(data); }, 'error': function() { makeErrorList(); alert("oh no! the yelp request failed. Please try again later."); }, }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yelpAjax(searchFor, searchNear) {\n\n /*\n *\tKeys and other tokens needed to access the Yelp API via OAuth\n *\tIn a non-Udacious scenario this would have to be moved\n * to a server side script and therefore actually be \"secret\"\n */\n\n var auth = {\n consumerKey: \"2M-JW...
[ "0.79215366", "0.76738", "0.73858505", "0.7275642", "0.7161303", "0.7150648", "0.70065266", "0.67143965", "0.6664854", "0.66376626", "0.66214263", "0.6541284", "0.6534723", "0.6533098", "0.65030205", "0.6490472", "0.647712", "0.644827", "0.64419335", "0.63834524", "0.63715106...
0.67342937
7
Changes out the resultList with a new yelp results
function makeYelpList(d) { response = d.businesses; // push ajax response to the global var 'response' /* --- Clean up the old lists --- */ resultList.removeAll(); // empty the resultList originalList.removeAll(); clearAllMarkers(); // clears marker array /* --- Display the search results --- */ response.forEach(function(place) { // place cards into observables resultList.push(new placeCard(place)); originalList.push(new placeCard(place)); }); scrollingTriggersMarkers(); // activate scroll position monitor triggers initMap(); // refresh and reconstruct map OpenInfowindowForMarker(0); // open first infoWindow forceTop(); // ensure DOM is scrolled to top }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateYelpResults() {\n yelpAjax(searchFor(), searchNear()); // get all the needed info\n}", "function displayYelpResults (responseJson) {\n console.log(responseJson);\n // if there are previous results, remove them\n $('#yelp-list').empty();\n // iterate through the foods array\n for ...
[ "0.7201718", "0.6893652", "0.63763183", "0.63328165", "0.63321316", "0.6291253", "0.61660683", "0.6154084", "0.6107276", "0.604572", "0.59728205", "0.596416", "0.5906155", "0.58831334", "0.5846018", "0.58459574", "0.583725", "0.5834318", "0.5830727", "0.5818472", "0.5805775",...
0.6860564
2
Loop through the markers, place them on the map with needed functionality
function setMarkers(map, points) { /* --- function needed for cleaning up infowindows --- */ function hideInfoWindowCloseControl() { // $(".gm-style-iw").next("div").css('display', 'none'); // this function gets rid of close btn in infowindows // udacity doesn't like it for this project so having an x is fine } /* --- function gives all markers resting icon and a base layering --- */ function resetMarkerIcons() { for (var i = 0; i < currentMarkers.length; i++) { currentMarkers[i].setIcon(markerIcon.resting); currentMarkers[i].setZIndex(4); currentMarkers[i].setAnimation(null); // turn BOUNCE Animation off } } /* --- loop through placeCards and extract marker-related pieces --- */ for (var point in points) { var place = points[point]; var siteLatLng = new google.maps.LatLng(place.location.coordinate.latitude, place.location.coordinate.longitude); var marker = new google.maps.Marker({ position: siteLatLng, map: map, clickable: true, animation: google.maps.Animation.DROP, // TODO change to something else? icon: markerIcon.resting, title: place.marker.title, phone: place.marker.phone, imgSrc: place.marker.imgSrc, description: place.marker.description, lat: place.location.coordinate.latitude, lng: place.location.coordinate.longitude, idSelector: place.marker.idSelector, stars: place.marker.stars, windowContent: '<div class="infowindow-title">' + place.marker.title + '</div><br/><img style="max-width: 96px; height: auto" src="' + place.marker.stars + '"></img>', }); /* --- push marker to currentMarkers --- */ currentMarkers.push(marker); /* * ------------------------------------------------------- * event listeners for markers that set up infowindows * ------------------------------------------------------- */ /* --- click --- */ google.maps.event.addListener(marker, "click", function(event) { resetMarkerIcons(); // put other markers back to resting state infowindow.setContent(this.windowContent); // set infowindow Content infowindow.open(map, this); // open the infowindow this.setAnimation(google.maps.Animation.BOUNCE); // bounce on click hideInfoWindowCloseControl(); // hide infoWindow close control map.panTo({ lat: (this.lat - mapShift.up), lng: (this.lng - mapShift.right) }); // center map to marker with shift for search $('html, body').animate({ scrollTop: $(this.idSelector).offset().top - (20 + scrollAdjustment) }, 100); // scroll to active placeCard in the DOM this.setIcon(markerIcon.active); // change icon to active this.setZIndex(5); // bring marker to top layer }); /* --- mouseover --- */ google.maps.event.addListener(marker, "mouseover", function(event) { resetMarkerIcons(); // put other markers back to resting state infowindow.setContent(this.windowContent); // set infowindow Content infowindow.open(map, this); // open the infowindow hideInfoWindowCloseControl(); // hide infoWindow close control this.setIcon(markerIcon.active); // change icon to active this.setZIndex(5); // bring marker to top layer }); /* --- doubleclick (used for DOM scroll trigger) --- */ google.maps.event.addListener(marker, "dblclick", function(event) { resetMarkerIcons(); // put other markers back to resting state map.panTo({ lat: (this.lat - mapShift.up), lng: (this.lng - mapShift.right) }); // center map to marker with shift for search infowindow.setContent(this.windowContent); // set infowindow Content infowindow.open(map, this); // open the infowindow hideInfoWindowCloseControl(); // hide infoWindow close control this.setIcon(markerIcon.active); // change icon to active this.setZIndex(5); // bring marker to top layer }); } forceTop(); // scroll DOM back to top }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addAllMarkers(){\n\tfor (var i = 0, len = mapLocations.length; i < len; i++){\n\t\tvar loc = mapLocations[i];\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: loc.position,\n\t\t\tmap: map,\n\t\t\tscaledSize: new google.maps.Size(50, 50),\n\t\t\ticon: \"https://s3-us-west-2.amazonaws.com/andrew...
[ "0.77969074", "0.76185673", "0.7406473", "0.7384406", "0.738121", "0.73804015", "0.7366029", "0.731674", "0.73118925", "0.7289495", "0.7269237", "0.7258026", "0.72545576", "0.72480637", "0.72362506", "0.72345346", "0.722807", "0.7224576", "0.7220034", "0.72072786", "0.7205453...
0.70696497
64
function needed for cleaning up infowindows
function hideInfoWindowCloseControl() { // $(".gm-style-iw").next("div").css('display', 'none'); // this function gets rid of close btn in infowindows // udacity doesn't like it for this project so having an x is fine }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearInfoWindows() {\n infowindows.forEach((infowindow) => {infowindow.close();});\n infowindows = [];\n}", "function closeInfoWindow() {\r\n\t\t$('#infowindows').html('');\r\n\t\t$['mapsettings'].infoWindowLocation = [];\r\n\t\t$['mapsettings'].hasOpenInfoWindow = false;\r\n\t}", "function remove_a...
[ "0.7865012", "0.74943554", "0.7351682", "0.70951855", "0.704527", "0.702769", "0.70123565", "0.6932595", "0.6927487", "0.6820696", "0.6814423", "0.6765461", "0.67402315", "0.67402315", "0.67402315", "0.67402315", "0.6738779", "0.6728645", "0.66888505", "0.66692567", "0.665869...
0.67277724
18
function gives all markers resting icon and a base layering
function resetMarkerIcons() { for (var i = 0; i < currentMarkers.length; i++) { currentMarkers[i].setIcon(markerIcon.resting); currentMarkers[i].setZIndex(4); currentMarkers[i].setAnimation(null); // turn BOUNCE Animation off } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createMarkerIcons() {\n\t\t\tvar markerIconDot = {\n\t\t\t\turl: '/assets/images/1x1-pixel.png',\n\t\t\t\tsize: new google.maps.Size(1, 1),\n\t\t\t\torigin: new google.maps.Point(0, 0),\n\t\t\t\tanchor: new google.maps.Point(4, 4),\n\t\t\t\tscaledSize: null\n\t\t\t};\n\n\t\t\tvar markerIconSmallRed = {\n\...
[ "0.71509564", "0.6849534", "0.66628927", "0.64706224", "0.64567053", "0.6419691", "0.63917", "0.63827056", "0.6375544", "0.63613665", "0.633783", "0.6330576", "0.6307822", "0.629982", "0.6281349", "0.6279704", "0.62711227", "0.6249962", "0.62062985", "0.61921316", "0.6175157"...
0.66628397
3
Section monitors the DOM scrolling and trigger events when appropriate / pull trigger for a specific marker
function OpenInfowindowForMarker(index) { google.maps.event.trigger(currentMarkers[index], 'dblclick'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listenForScrollEvent() {\n el = $('.tab-content .popular-course .links');\n el.on(\"scroll\", function () {\n el.trigger(\"custom-scroll\");\n });\n}", "function onScroll() {\n\t\t// unique tick id\n\t\t++ticks;\n\n\t\t// viewport rectangle\n\t\tvar top = jWindow.scrollTop(),\n\t\t\tleft = jWindow...
[ "0.65740293", "0.65445024", "0.65445024", "0.65445024", "0.65445024", "0.6532901", "0.6501826", "0.6476131", "0.64375275", "0.640672", "0.6406147", "0.6394246", "0.6383426", "0.63698643", "0.63400567", "0.63040805", "0.63015485", "0.6299095", "0.6291468", "0.62696886", "0.626...
0.0
-1
zero on standard desktop view
function scrollingTriggersMarkers() { $(window).scroll(function() { // as user scrolls var pixelsScrolled = $(window).scrollTop() + scrollAdjustment; // store distance scrolled for (var resultCard in resultList()) { // for each placeCard var resultOffset = $(resultList()[resultCard].idSelector()).offset().top; // store the offset of the card if (resultOffset - pixelsScrolled < 60 && resultOffset - pixelsScrolled > -60) { // check if two distances are close OpenInfowindowForMarker(resultCard); // open Infowindow for placeCard being viewed in DOM } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function zero(){ return 0;}", "zero(){\n this.x = 0;\n this.y = 0;\n this.z = 0;\n }", "zero() {\n this.x = 0;\n this.y = 0;\n this.z = 0;\n }", "function viewToDesktop_Browser() {\n // Remove slick\n $(\"#browserView\").slick(\"unslick\");\n $(\".sl...
[ "0.6295874", "0.610893", "0.60869455", "0.60835326", "0.596949", "0.59465384", "0.59176654", "0.5915808", "0.59084857", "0.5888643", "0.58620846", "0.58202755", "0.5709078", "0.57030773", "0.57027155", "0.5694154", "0.56662", "0.56560874", "0.56550694", "0.56494397", "0.56094...
0.0
-1
Handles changing mapShift vars in responsive manner using matchMedia
function reformatOnSize() { if (window.matchMedia("(min-width: 680px)").matches) { // for "big" screen mapShift = { right: 0.08, up: 0.04 }; scrollAdjustment = 0; map.setZoom(12); $('#map').removeClass("fixed"); } else if (window.matchMedia("(orientation: portrait)").matches) { // small screen portrait mapShift = { right: -0.01, up: 0.01 }; scrollAdjustment = 260; map.setZoom(11); } else { // small screen landscape mapShift = { right: 0.09, up: 0 }; scrollAdjustment = 0; map.setZoom(11); $('#map').removeClass("fixed"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setMapWidth() {\n\t\tlet windowWidth = window.innerWidth;\n\t\tswitch(true) {\n\t\t\tcase windowWidth >= 1200:\n\t\t\t\tthis.mapWidth = 950;\n\t\t\t\tthis.scale = 950;\n\t\t\t\treturn;\n\t\t\tcase windowWidth >= 992:\n\t\t\t\tthis.mapWidth = 850;\n\t\t\t\tthis.scale = 850;\n\t\t\t\treturn;\n\t\t\tdefault:\n\t\t\t\...
[ "0.6471649", "0.6148041", "0.6101379", "0.601778", "0.57190514", "0.5696023", "0.56730974", "0.56509477", "0.56487", "0.56459767", "0.5623758", "0.56216943", "0.55983377", "0.5597752", "0.5582185", "0.55764437", "0.55618364", "0.5555578", "0.55130863", "0.5501862", "0.5493917...
0.61953574
1
force scroll the DOM to the top
function forceTop() { $('html, body').animate({ scrollTop: $('body').offset().top, }, 200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "scrollToTop() {\n document.documentElement.scrollTop = 500;\n }", "function scrollToTop() {\n\troot.scrollTo({\n\t\ttop: 0,\n\t\tbehavior: \"smooth\"\n\t});\n}", "function toTop(){\n document.body.scrollTop=0\n }", "toTop() {\n window.scrollTo(0,0);\n }", "function goToTop()...
[ "0.8119478", "0.80938685", "0.8083193", "0.80293417", "0.80012995", "0.7983722", "0.7934287", "0.7934008", "0.78765786", "0.7839427", "0.7823527", "0.782153", "0.7820804", "0.7810673", "0.7795514", "0.77936476", "0.77921766", "0.777931", "0.777533", "0.7771789", "0.7770195", ...
0.79327226
8
Number > Number > Vector2D
function Vector2D(x, y) { this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vector2d(x, y) {\n this.x = x;\n this.y = y;\n}", "function Vector2d(x, y) {\r\n\tthis.x = parseInt(x);\r\n\tthis.y = parseInt(y);\r\n}", "function vec( n, n2=n ) { return {x: n, y: n2}; }", "multiply(number) {\r\n return new Vector(...new Array(this.getDimensions()).fill(undefined).map((e,...
[ "0.6807841", "0.6456737", "0.6297367", "0.61700237", "0.6151039", "0.6135621", "0.60162073", "0.5994563", "0.5946715", "0.5937384", "0.5920884", "0.59179926", "0.5897943", "0.5884586", "0.58784515", "0.58707947", "0.58660966", "0.5861763", "0.5861763", "0.5861763", "0.5853718...
0.62174696
3
console.log(collectionCopy); declare func and pass params, for ex. id, artist, Bon Jovi
function update(id, prop, value) { //test scope first var data = collection[2548].artist; // console.log("Testing a collectionvalue: " ,data); // for(id in collection){ if(value !== "" && prop !== "tracks"){ // console.log("* If value not empty and prop isn't tracks: ", value); // console.log("* prop is: ", prop); collection[id][prop] = value;//sets the value to this collection prop passed in // console.log("x: ", collection[id][prop]); // collection[id] = prop.value; } else if (prop == "tracks" && value !== ""){ console.log("** If value not empty and prop is tracks: ", value); collection[id][prop].push(value); console.log("- track added: ", collection[id][prop]); } else if (value === ""){ // console.log("*** if value is empty and prop is: ", prop); console.log("*** Deleted prop(blank value) is: ", collection[id][prop]); delete collection[id][prop];//delete prop } // } return collection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addToCollection( newTitle, newArtist, newYearPublished, newTracks ){ \n// - Create a new object having the above properties\n let album = {\n title : newTitle,\n artist : newArtist,\n year : newYearPublished,\n tracks : newTracks\n } //end object literal\n// - Add the new obj...
[ "0.58886296", "0.58565295", "0.58496225", "0.57698417", "0.5729608", "0.5716763", "0.56754804", "0.56599736", "0.5643525", "0.55946773", "0.55909413", "0.5575607", "0.5471764", "0.5432595", "0.54138976", "0.53556246", "0.5329556", "0.52674514", "0.52674514", "0.52674514", "0....
0.0
-1
function of other type difficult to
function firstName(person) { console.log(person.firstName + " " + person.lastName); console.log("name is ", person.firstName, person.lastName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function miFuncion (){}", "function fun1(){} //toda a função de js retorna alguma coisa", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function an(){}", "function normal() {}", "function fun1( /*parametros opcionais*/ ){ /*retorno opcional*/ }", "function obj(objec...
[ "0.6497695", "0.62689036", "0.6259653", "0.6259653", "0.6259653", "0.594425", "0.5869559", "0.5869095", "0.58588666", "0.5808197", "0.576442", "0.5713568", "0.5655744", "0.5655744", "0.5649164", "0.5589708", "0.5589708", "0.5589708", "0.5589708", "0.55857617", "0.5561282", ...
0.0
-1
due to this we need to create interface
function firstName2(person) { console.log(person.firstname + " " + person.lastname); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "transient private protected internal function m182() {}", "obtain(){}", "private internal function m248() {}", "transient private internal function m185() {}", "transient protected internal function m189() {}", "protected internal function m252() {}", "transient f...
[ "0.6552967", "0.6235893", "0.62136436", "0.61017567", "0.6072692", "0.60482913", "0.5939396", "0.5792815", "0.56968933", "0.5678984", "0.5678984", "0.5678984", "0.5611226", "0.5604285", "0.5600849", "0.55642205", "0.55285", "0.54824173", "0.5482108", "0.5447559", "0.5437771",...
0.0
-1
VALIDATION FOR USER NAME TO ACCEPT ONLY CHARACTERS START
function onlyAlphabets(e,t) { try { if (window.event) { var charCode = window.event.keyCode; } else if (e) { var charCode = e.which; } else { return true; } if ((charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123)) return true; else return false; } catch (err) { alert(err.Description); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isValidName(username) {\n return /^[A-z ]+$/.test(username);\n }", "function validUserName(txtUserName) {\n\tvar strUname = txtUserName.toString();\n\t/* changed regex pattern to allow space */\n\treturn /^[a-z\\d\\s]+$/i.test(strUname);\n}", "function usernameValidation() {\n return username.v...
[ "0.7764171", "0.77157384", "0.76993805", "0.7582384", "0.7579269", "0.7520978", "0.74986404", "0.7459219", "0.743678", "0.74288285", "0.73359865", "0.72984475", "0.72946995", "0.72838575", "0.72670686", "0.72621113", "0.7257523", "0.7255711", "0.721457", "0.7205192", "0.71868...
0.0
-1
VALIDATION FOR USER NAME TO ACCEPT ONLY CHARACTERS END / VALIDATION FOR PASSWORD NOT TO ACCEPT SPECIAL CHARACTERS START
function blockSpecialChar(e) { var k = e.keyCode; return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || (k >= 48 && k <= 57)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function usernameValidation() {\n return username.value.match(onlyLettersAndNumsReg);\n}", "function validUserName(txtUserName) {\n\tvar strUname = txtUserName.toString();\n\t/* changed regex pattern to allow space */\n\treturn /^[a-z\\d\\s]+$/i.test(strUname);\n}", "function validarUserName(username){\n ...
[ "0.7859156", "0.7411783", "0.7392258", "0.73821765", "0.7379853", "0.7355144", "0.73474914", "0.73433566", "0.7329868", "0.7314813", "0.7275319", "0.7266879", "0.7213676", "0.7213015", "0.7210557", "0.7195019", "0.71829635", "0.71520054", "0.71161383", "0.7112514", "0.7085228...
0.0
-1
VALIDATION FOR PASSWORD NOT TO ACCEPT SPECIAL CHARACTERS END / VALIDATION FOR EMAIL ID FOR A SPECIFIC FORMAT START
function ValidateEmail(e){ var emailId = document.getElementById("email").value; var fields = emailId.split(/@/); var x = fields[0]; var y = fields[1]; var gmail = "gmail.com"; var yahoo = "yahoo.com"; var email = "email.com"; var ymail = "ymail.com"; var GMAIL = "GMAIL.COM"; var YAHOO = "YAHOO.COM"; var EMAIL = "EMAIL.COM"; var YMAIL = "YMAIL.COM"; try{ var val1 = y.localeCompare(gmail); var val2 = y.localeCompare(yahoo); var val3 = y.localeCompare(email); var val4 = y.localeCompare(ymail); var val5 = y.localeCompare(GMAIL); var val6 = y.localeCompare(YAHOO); var val7 = y.localeCompare(EMAIL); var val8 = y.localeCompare(YMAIL); var foundchar = emailId.includes("@"); } catch(err) { //alert("else[FALSE]"); alert("Please enter an valid email address"); document.getElementById("email").value=""; return false; } // alert(foundchar+" SOMETHING"); if(foundchar==true){ if(val1==0 || val2==0 || val3==0 || val4==0 || val5==0 || val6==0 || val7==0 || val8==0){ //alert("if[TRUE]") return true; } else { //alert("else[FALSE]"); alert("Please enter an valid email address"); document.getElementById("email").value=""; return false; } } else{ //alert("else[FALSE]"); alert("Please enter an valid email address"); document.getElementById("email").value=""; return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function userPassCheck(str){\n var reason = \"\"\n var valid = true\n if (str.length < 6){\n valid = false\n reason = reason + \"Must be greater than 6 characters, \"\n }\n if (!str.includes(\"#\")){\n valid = false\n reason = reason + \"Must include a #, \"\n }\n if (!str.includes(\"$\")){\n ...
[ "0.65628535", "0.6561409", "0.6522556", "0.6443527", "0.63993496", "0.63540596", "0.63321435", "0.62934375", "0.6293414", "0.6271372", "0.6267052", "0.6253082", "0.6250903", "0.624797", "0.6242096", "0.62406665", "0.62326777", "0.6232452", "0.62317234", "0.6217743", "0.621126...
0.0
-1
VALIDATION FOR EMAIL ID FOR A SPECIFIC FORMAT END / VALIDATION FOR CONTACT NUMBER TO ACCEPT ONLY NUMBERS START
function isNumberKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allnumeric_aadharno(aadharno, msgBox) {\n var num1 = /^\\d{4}\\s\\d{4}\\s\\d{4}$/;\n\n if (aadharno.value.match(num1)) {\n document.getElementById(msgBox).innerHTML = '';\n return true;\n } else {\n document.getElementById(msgBox).innerHTML = '<font style=\"color: red;\">Must...
[ "0.6675478", "0.6640252", "0.66027415", "0.65635127", "0.6554432", "0.65485954", "0.6542802", "0.65204483", "0.64331675", "0.64322525", "0.6351921", "0.6331332", "0.63215566", "0.6321268", "0.6308271", "0.6293923", "0.6288809", "0.6255231", "0.6254028", "0.62195295", "0.61961...
0.0
-1
the magical helper function (no longer necessary in GSAP 3.3.1 because it was added as ScrollTrigger.batch())...
function batch(targets, vars) { let varsCopy = {}, interval = vars.interval || 0.1, proxyCallback = (type, callback) => { let batch = [], delay = gsap.delayedCall(interval, () => {callback(batch); batch.length = 0;}).pause(); return self => { batch.length || delay.restart(true); batch.push(self.trigger); vars.batchMax && vars.batchMax <= batch.length && delay.progress(1); }; }, p; for (p in vars) { varsCopy[p] = (~p.indexOf("Enter") || ~p.indexOf("Leave")) ? proxyCallback(p, vars[p]) : vars[p]; } gsap.utils.toArray(targets).forEach(target => { let config = {}; for (p in varsCopy) { config[p] = varsCopy[p]; } config.trigger = target; ScrollTrigger.create(config); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function throttledScrollEvents() {\n\n }", "function onScroll() {\r\n requestTick();\r\n}", "get [scrollTarget]() {\n return this[ids].grippedContent;\n }", "function mkdOnWindowScroll() {\n \n }", "OnBatchModified() { this.Trigger(\"BatchModified\", new tp.DataTableEventArgs()); }", ...
[ "0.63193184", "0.6062122", "0.6035587", "0.5993228", "0.59437275", "0.59001255", "0.59001255", "0.58774984", "0.58774984", "0.58609354", "0.58545446", "0.58199054", "0.58199054", "0.58199054", "0.58199054", "0.58199054", "0.58127123", "0.58052737", "0.5772822", "0.5761358", "...
0.66137916
0
selects items (in our case SVGs) to reveal on scroll
constructor(els, offset) { this.itemsToReveal = els; this.offsetPercentage = offset; this.hideInitially(); this.createWaypoints(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showOnScroll() {\n var $showFigure = $('.show-figure-js');\n\n if ($showFigure.length) {\n ScrollReveal().reveal($showFigure, {\n duration: 900,\n distance: '100px',\n scale: 0.92,\n interval: 100,\n reset: false,\n // viewFactor: 0.1\n viewOffset: {\n bottom...
[ "0.61664367", "0.6068247", "0.5958858", "0.59275913", "0.5914469", "0.5883666", "0.58127874", "0.57819307", "0.57218087", "0.5689101", "0.56806755", "0.55761564", "0.55598074", "0.552552", "0.5514969", "0.5496108", "0.54765344", "0.54689485", "0.5452309", "0.5448476", "0.5448...
0.0
-1
In order to reveal, we need to hide the items intitally. Hence, hideInitially
hideInitially() { this.itemsToReveal.addClass("reveal-item"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hideInitially() {\n this.itemsToReveal.addClass('reveal-item');\n }", "hideInitially() { \n this.itemsToReveal.addClass(\"reveal-item\");\n }", "hideInitially() {\n \tthis.itemsToReveal.addClass(\"reveal-item\"); \n }", "hideOffscreenElements() {\n const startIndex = Math.floor(-(t...
[ "0.8195007", "0.810957", "0.810708", "0.6901322", "0.6866264", "0.67496663", "0.67422456", "0.67120814", "0.6707221", "0.666634", "0.66180766", "0.6616379", "0.6606463", "0.66037613", "0.6603125", "0.6598453", "0.65854293", "0.65812165", "0.6576137", "0.65582377", "0.65582377...
0.8259329
0
This is a library to create a point to initiate the reveal when scrolling down
createWaypoints() { //to be used to access offsetPercentage below var that = this; //runs four times, once for each item this.itemsToReveal.each(function() { //to be used to access itemsToReveal down below var currentItem = this; new Waypoint({ element: currentItem, handler: function() { $(currentItem).addClass("reveal-item--is-visible"); }, offset: that.offsetPercentage }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showOnScroll() {\n var $showFigure = $('.show-figure-js');\n\n if ($showFigure.length) {\n ScrollReveal().reveal($showFigure, {\n duration: 900,\n distance: '100px',\n scale: 0.92,\n interval: 100,\n reset: false,\n // viewFactor: 0.1\n viewOffset: {\n bottom...
[ "0.76223934", "0.69320244", "0.64752007", "0.62724274", "0.61980015", "0.6155206", "0.6149233", "0.61460346", "0.6119907", "0.6119537", "0.6118713", "0.611524", "0.6097961", "0.6090442", "0.6090442", "0.60846233", "0.6074712", "0.6071996", "0.6070862", "0.605072", "0.6021595"...
0.0
-1
Service (business) methods for managing Configuration objects
function ConfigurationService(repository) { this._repository = repository; // //Expose CRUD operations from the repository // (except for 'save' which is extended) var methods = ['find', 'findById', 'count', 'remove']; methods.forEach(function(name) { this[name] = function() { return repository[name].apply(repository, arguments); } }.bind(this)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "configure(config) {\n this._connectionResolver.configure(config);\n this._maxKeySize = config.getAsIntegerWithDefault('options.max_key_size', this._maxKeySize);\n this._maxExpiration = config.getAsLongWithDefault('options.max_expiration', this._maxExpiration);\n this._maxValue = config....
[ "0.61953366", "0.61824375", "0.6179578", "0.61625993", "0.61218184", "0.6116961", "0.61028445", "0.6094872", "0.6082392", "0.6071588", "0.601267", "0.595566", "0.5953155", "0.5927944", "0.59223247", "0.59223247", "0.5870329", "0.58645236", "0.5831196", "0.5827349", "0.5814776...
0.6203163
0
a utility function to generate instances of a class
function construct(constructor, args) { var c = function () { return constructor.apply(this, args); }; c.prototype = constructor.prototype; return new c(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GeneratorClass () {}", "function Class() {\n return generator.newInstance(this, arguments);\n }", "getInstances() {}", "static Instantiate() {}", "static Instantiate() {}", "static Instantiate() {}", "static Instantiate() {}", "static Instantiate() {}", "static In...
[ "0.6999356", "0.6856208", "0.6275447", "0.62617826", "0.62617826", "0.62617826", "0.62617826", "0.62617826", "0.62617826", "0.6180269", "0.61424595", "0.60866773", "0.6066141", "0.6066141", "0.6066141", "0.60489446", "0.60447973", "0.60447973", "0.60407555", "0.5987112", "0.5...
0.0
-1
End of use strict
function updateSummary(summaries) { summaries.forEach(function(curSummary) { // console.log(curSummary); $('#services-container').append('\ <div class="col-md-4">\ <span class="fa-stack fa-4x">\ <i class="fa fa-circle fa-stack-2x text-primary"></i>\ <i class="fa ' + curSummary.code + ' fa-stack-1x fa-inverse"></i>\ </span>\ <h4 class="service-heading">' + curSummary.name + '</h4>\ <p class="text-muted">' + curSummary.description + '</p>\ </div>\ '); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function strictly() {\n 'use strict';\n\n}", "transient private protected internal function m182() {}", "function strictMode() {\n 'use strict';\n\n //..\n //..\n }", "transient protected internal function m189() {}", "static transient final private internal function m43() {}", "transient priv...
[ "0.6751486", "0.6697779", "0.66280675", "0.66235316", "0.65359306", "0.65213853", "0.64448684", "0.6424859", "0.6421975", "0.6421123", "0.6383936", "0.6369395", "0.631593", "0.62950236", "0.6291042", "0.62865376", "0.6272056", "0.62363476", "0.6229284", "0.62065816", "0.61860...
0.0
-1
output: true or false ALGORITHM Scrub string of any non digits. reverse iterate, convert to num, double every other value and output to array. if value is >= 10, subtract 9. finally, sum all digits. if total mod 10 === 0. return true. Else, false.
function luhnRemainder(string) { var array, total; nums = string.replace(/\D/g, '').split('').reverse(); if (nums.length === 0) return false; total = nums.map(Number).reduce(function(sum, val, idx) { if (idx % 2 !== 0) { val *= 2; if (val >= 10) { val -= 9; } } return sum + val; }); return total % 10; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateCred (array){\n let finalSum = 0\n for(let i=array.length-1; i>=0; i--){\n let num = array[i]\n if((i-array.length)%2==0){\n num*=2\n if(num>9){\n num-=9\n }\n }\n finalSum= finalSum+num\n }\n const check = (fi...
[ "0.6644529", "0.6608124", "0.65810204", "0.65156543", "0.6513048", "0.6408474", "0.6396559", "0.6332918", "0.6290458", "0.62305176", "0.6218377", "0.6200407", "0.61892664", "0.61226445", "0.6103008", "0.6098515", "0.60881454", "0.60836524", "0.6081497", "0.60641384", "0.60633...
0.65209204
3
true Write a function that can add a 'check digit' to make an invalid number, a valid luhn number. input: string output: string + one char algorithm: first check if already a luhn number. Return string if true. IF not: append 0 and return luhnRemainder function. Subtract remainder from 10 use that number as the check.
function addCheck(string) { var check, remainder; if (luhn(string)) return string; remainder = luhnRemainder(string + '0'); check = 10 - remainder; return string + check; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeValidLuhn(string) {\n if (typeof string !== 'string' || (!string)) return false;\n\n if (luhn(string)) return string;\n string = string.replace(/\\D/g, '');\n string += '0';\n\n while (!luhn(string)) {\n string = string.split('').map(Number);\n string[string.length - 1] += 1;\n string = ...
[ "0.7908186", "0.78932077", "0.77553475", "0.7624451", "0.7589165", "0.75804675", "0.747386", "0.73762405", "0.7339043", "0.7315871", "0.7314682", "0.72844744", "0.72812366", "0.72812366", "0.7256185", "0.71417147", "0.7120658", "0.71036524", "0.70523024", "0.66744727", "0.662...
0.84438974
0
Write a recursive function that counts how many sheep jumps over the fence. Your program should take a number as an input. That number should be the number of sheep you have. The function should display the number along with the message "Another sheep jump over the fence" until no more sheep are left. Input: 3 Output: 3 Another sheep jump over the fence 2 Another sheep jump over the fence 1 Another sheep jump over the fence
function countSheep(sheep) { if (sheep === 0) { return; } console.log(`${sheep} - Another sheep jump over the fence`); countSheep(sheep - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function countSheep(currentNumberSheep) {\n if (currentNumberSheep === 0) {\n console.log('All sheep jumped over the fence');\n return\n } else {\n console.log(currentNumberSheep + ' ' + '- Another sheep jumps over the fence');\n totalNumberSheep = currentNumberSheep -= 1;\n ...
[ "0.8239102", "0.81680954", "0.8166278", "0.8082292", "0.80744654", "0.8043827", "0.79709095", "0.78569835", "0.75755006", "0.74766695", "0.7347261", "0.71648145", "0.71572024", "0.7127057", "0.6986611", "0.69783145", "0.68566", "0.6822001", "0.64459085", "0.61891", "0.6044881...
0.8143642
3
This fuction is triggered by the event
function toggleMenu() { if (!showMenu) { menuBtn.classList.add("close"); // this adds a class value menu.classList.add("show"); menuBranding.classList.add("show"); menuNav.classList.add("show"); navItems.forEach(navItem => navItem.classList.add("show")); showMenu = true; } else { menuBtn.classList.remove("close"); // this removes a class value menu.classList.remove("show"); menuBranding.classList.remove("show"); menuNav.classList.remove("show"); navItems.forEach(navItem => navItem.classList.remove("show")); showMenu = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onEvent() {\n \n }", "onChanged(e){}", "updated(e){}", "firstUpdated(e){}", "function editEvent(){\n\t\n}", "callEvent(event) {\n trackEvent('Elections', 'clicked ' + event.currentTarget.id)\n }", "_evtChange(event) { }", "handleEvents() {\n }", "featureClickEventHandler(event) {\r\n ...
[ "0.75546587", "0.68144387", "0.6786254", "0.6599995", "0.6556824", "0.64991087", "0.64955175", "0.6482351", "0.64525425", "0.64340717", "0.6354238", "0.63010174", "0.62824917", "0.62621945", "0.62318546", "0.621786", "0.62172055", "0.62143546", "0.62097263", "0.6204826", "0.6...
0.0
-1
1 2 3 4 e a 5 1 5 6 7 8 > f b 6 2 a b c d > g c 7 3 e f g h h d 8 4 1(0,0) < e(3,0) < h(3,3) < 4(0,3) 2(0,1) < a(2,0) < g(3,2) < 8(1,3) Solution: Do it layer by layer. For each pixel in the layer, rotate 4 together each iteration.
function rotate(matrix) { let n = matrix.length; // iterate through layers (aka the squares). There're 2 in a 4x4 matrix for (let x = 0; x < n/2; x++) { // need to -1 because we don't need to rotate element at y=n-x. It's rotated with y=x for (let y = x; y < n - x - 1; y++) { let top = matrix[x][y]; // store top matrix[x][y] = matrix[n - y - 1][x]; // left -> top matrix[n - y - 1][x] = matrix[n - x - 1][n - y - 1]; // bottom -> left matrix[n - x - 1][n - y - 1] = matrix[y][n - x -1]; // right -> bottom matrix[y][n - x -1] = top ; // top -> right } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rotateImage(a) { \n let len = a.length\n for (i = 0; i < len; i++, len--) { \n let end = len - 1; \n for ( j = i; j < end; j++) { \n let tail = a.length - j - 1; \n\n let temp = a[i][j]; \n a[i][j] = a[tail][i]; \n a[tail][i] = a[end][tail]; \n a[end][tail] =...
[ "0.70343316", "0.651586", "0.6397351", "0.6237829", "0.6226968", "0.6163556", "0.61477894", "0.6134421", "0.61145854", "0.60882944", "0.60759276", "0.60710603", "0.60678595", "0.606537", "0.6027852", "0.6010915", "0.59576553", "0.58569235", "0.5853839", "0.5814309", "0.580789...
0.65559876
1
Function to initilaze completion store
function initializeStore({ completions }) { const { completionStore } = self; let generatedCompletions = []; if (completions && completions.length) { for (var i = 0; i < completions.length; i++) { const itemOfCompletion = completions[i]; /** * If user skip task, we skip completion state */ if (itemOfCompletion.was_cancelled === true) continue; /** * Add to array new completion */ generatedCompletions.push(itemOfCompletion); } } if (completionStore.completions.length === 0) { const c = self.completionStore.addInitialCompletion(); self.completionStore.selectCompletion(c.id); if (generatedCompletions.length > 0) { let data = generatedCompletions[0].result; if (typeof generatedCompletions[0].result === "string") { data = JSON.parse(generatedCompletions[0].result); } c.deserializeCompletion(data); c.reinitHistory(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initializeStore({ completions, predictions }) {\n const cs = self.completionStore;\n cs.initRoot(self.config);\n\n // eslint breaks on some optional chaining https://github.com/eslint/eslint/issues/12822\n /* eslint-disable no-unused-expressions */\n predictions?.forEach(p => {\n ...
[ "0.6746584", "0.6413835", "0.6200534", "0.5876315", "0.58358663", "0.58286315", "0.58186936", "0.5818093", "0.5818093", "0.5805773", "0.56839013", "0.56818384", "0.56811106", "0.56766653", "0.5661163", "0.5655732", "0.5649185", "0.56266135", "0.56047136", "0.56047136", "0.558...
0.79691344
0
Write a function that returns true if an object is empty, and false otherwise. Examples
function isEmpty(obj) { return !Object.keys(obj).length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isEmpty(obj) {\n if (!obj) {\n return true\n } else if (obj.length == 0 || Object.keys(obj).length == 0) {\n return true\n } else {\n return false\n }\n}", "function emptyObject (data) {\n return object(data) && Object.keys(data).length === 0;\n }", "function isEmpty(obj) {\n return ...
[ "0.78000593", "0.7781515", "0.77792746", "0.7749803", "0.7718789", "0.7718789", "0.7717837", "0.7668534", "0.7640871", "0.7637968", "0.762099", "0.762099", "0.762099", "0.7616544", "0.7608095", "0.7602876", "0.7578737", "0.7542341", "0.7542341", "0.7542341", "0.7542341", "0...
0.7380711
85
This is the function for when a cell is clicked
function selectCell() { // If the game ends then none of the cells should be clickable if (clickDisabled) { return; } // This is a conditional to make sure that only one cell is highlighted at a time by reverting the previous selected cell back to normal if (selectedCell && !($(selectedCell).hasClass('incorrect-clicked'))) { $(selectedCell).removeClass('clicked'); $(selectedCell).addClass('empty-cell'); } else if (selectedCell) { $(selectedCell).removeClass('incorrect-clicked'); $(selectedCell).addClass('incorrect'); } // Updates the selected cell to the current one selectedCell = this; // Updates the background of the selected cell to show that it is highlighted $(this).removeClass('empty-cell'); if (!$(this).hasClass('incorrect')) { $(this).addClass("clicked"); } else { $(this).addClass("incorrect-clicked"); } // For loop to traverse the entire array to find the selected cell in the grid 2-d array and then stores the coordinates of that cell for (var row = 0; row < grid.length; row++) { if (grid[row].indexOf(this) != -1) { selectedCol = grid[row].indexOf(this); selectedRow = row; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleHTMLCellClick(e) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget\n let idArray = e.currentTarget.id.split(\"-\");\n let row = Number(idArray[1]);\n let col = Number(idArray[2]);\n\n chess.handleCellSelected(row, col);\n}", "function cell_click(evt) {\n l...
[ "0.7875471", "0.7721438", "0.77070034", "0.7552904", "0.75396615", "0.7475997", "0.741275", "0.741275", "0.7391855", "0.73621166", "0.73043305", "0.7221879", "0.7193755", "0.71657044", "0.71532315", "0.71112186", "0.70973104", "0.7060106", "0.7046273", "0.70431757", "0.701346...
0.64391136
70
This is the function to allow the player to type in the selected cell
function writeCell(event) { // Starts the timer once the player types their first entry startTimer(); // Allows the player to delete their entries with backspace and keeps the player from inputing extraneous keys like the letter keys if (event.key == "Backspace") { selectedCell.textContent = ""; $(selectedCell).removeClass('incorrect incorrect-clicked'); $(selectedCell).addClass("clicked"); } else if (numbers.indexOf(event.key) != -1) { selectedCell.textContent = event.key; checkCorrect(event.key); } else { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selectCell() {\n let highlighting = false;\n\n // Allow player to place a token in a cell.\n OUTER: for (let row of grid) {\n for (let cell of row) {\n if (cell.highlight !== null) {\n highlighting = true;\n cell.highlight = null;\n cell.owner = playerTurn;\n\n if (c...
[ "0.65119404", "0.6465278", "0.6291497", "0.6275184", "0.6210165", "0.6157138", "0.614593", "0.6003313", "0.5975697", "0.5974436", "0.5893369", "0.5876473", "0.586638", "0.58629787", "0.5849246", "0.58461416", "0.5831539", "0.58177626", "0.5804896", "0.5764776", "0.57490695", ...
0.67068934
0
Function to check if the player's input is correct based on the current state of the board
function checkCorrect(playerNum) { var correct = true; // Variables to keep track of the current 3x3 box the player is in var boxRow = Math.floor(selectedRow / 3) * 3; var boxCol = Math.floor(selectedCol / 3) * 3; // For loop to check if there is any overlap in the current column for (var row = 0; row < grid.length; row++) { if (playerNum == grid[row][selectedCol].textContent && row != selectedRow) { correct = false; } } // For loop to check if there is any overlap in the current row for (var col = 0; col < grid[selectedRow].length; col++) { if (playerNum == grid[selectedRow][col].textContent && col != selectedCol) { correct = false; } } // For loop to check if there is any overlap in the current 3x3 mini box for (var row = boxRow; row < boxRow + 3; row++) { for (var col = boxCol; col < boxCol + 3; col++) { if (playerNum == grid[row][col].textContent && col != selectedCol && row != selectedRow) { correct = false; } } } // If the player is wrong the cell is highlighted red and kept that way until the player is right, otherwise the cell remains the same if (!correct) { $(selectedCell).removeClass('clicked'); $(selectedCell).addClass("incorrect-clicked"); } else { $(selectedCell).removeClass('incorrect-clicked incorrect'); $(selectedCell).addClass('clicked'); // Every time the player inputs a seemingly correct answer, the game will check to see if the player won and then end the game if (winCheck()) { // Stops the timer stopTimer(); // Disables clickability clickDisabled = true; // Disables the ability to overwrite cells document.removeEventListener("keyup", writeCell, false); // Creates a button to take the player to the endscreen var btn = document.createElement("button"); btn.innerHTML = "You Win! Click me to see your stats."; $(btn).addClass('btn btn-primary my-2'); gridBox.appendChild(btn); $(btn).attr("onclick", "document.location='endscreen.html'"); localStorage.setItem("minutes", min); localStorage.setItem("seconds", sec); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkWin(){\r\n var playerKey = Player+1\r\n const allEqual = arr => arr.every(val => val === playerKey);\r\n if (gameUpdateObj.xPos == null) return false;\r\n //Y Axis\r\n for (var y=0; y<6; y++) {\r\n if (y >= 0 && y <= 6-4){ //-4 as 4 need to be connected to win\r\n ...
[ "0.6976146", "0.6942169", "0.6909224", "0.6839424", "0.68042004", "0.6803577", "0.68001306", "0.678097", "0.67730707", "0.67730707", "0.6757206", "0.6755541", "0.67488223", "0.67274344", "0.6724862", "0.6708145", "0.6707371", "0.6702318", "0.66997004", "0.66666555", "0.666545...
0.6424987
77
Function to check if the player won
function winCheck() { // Traverses the entire grid and checks for any discrepancy between the current grid and the answer grid, if there is then the player has not won yet for (var row = 0; row < 9; row++) { for (var col = 0; col < 9; col++) { if (grid[row][col].textContent != answerGrid[row][col]) { return false; } } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkWon() {\n isPlayerWon = playerGuess.value.toUpperCase() === computerBase;\n isComputerWon = computerGuess.value === playerBase;\n}", "gameWon() {\n if (this._gameBoard[0] == this._currentPlayer && this._gameBoard[1] == this._currentPlayer && this._gameBoard[2] == this._currentPlayer ||\n ...
[ "0.78256726", "0.7769323", "0.7711409", "0.7679786", "0.75871164", "0.75796545", "0.74839634", "0.7467969", "0.74617046", "0.74218136", "0.73918897", "0.7377211", "0.7370664", "0.73528934", "0.73492587", "0.7333409", "0.7307663", "0.7305142", "0.7301336", "0.72895926", "0.726...
0.0
-1
Function to start the timer
function startTimer() { if (stoptime) { stoptime = false; runClock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function timerStart(){\n\t\n\t\t\n\t}", "start() {\n timer.start();\n }", "function startTimer() {\n status = 1;\n timer();\n }", "function startIntevall() {\r\n start = setInterval(function () {\r\n timer();\r\n }, 1000);\r\n }", "function startTimer(){\n t = ...
[ "0.8383084", "0.8321133", "0.82520145", "0.8108517", "0.7872017", "0.781921", "0.7779609", "0.77573866", "0.7730622", "0.77217996", "0.7701875", "0.76922953", "0.7681092", "0.7668472", "0.7668472", "0.7629426", "0.7612758", "0.7586919", "0.75786793", "0.75579154", "0.7544497"...
0.7611573
17
Function to stop the timer
function stopTimer() { if (!stoptime) { stoptime = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stopTimer(){ clearInterval(interval)}", "function stopTimer(){\r\n clearInterval(timer);\r\n }", "function stopTimer(){\n clearInterval(timer);\n }", "function stop() {\n timer.stop();\n}", "function stopTimer() {clearTimeout(startTimer)}", "stopTimer() {\n\t\t\tclearInt...
[ "0.8656761", "0.85707074", "0.8531468", "0.85241675", "0.8499903", "0.84626013", "0.84263456", "0.84158456", "0.8414935", "0.83860433", "0.83628464", "0.8352758", "0.8351501", "0.83364385", "0.833249", "0.8331458", "0.83240193", "0.83178526", "0.82938653", "0.826027", "0.8209...
0.8097362
32
Function to calculate the time
function runClock() { // Reverts the second and minute variables back to ints so that they can be incremented sec = parseInt(sec); min = parseInt(min); // Checks if the clock should actually be running if (!stoptime) { // Increments the second by one every tick sec++ // If 60 seconds pass, add 1 minute and reset the seconds if (sec == 60) { min++; sec = 0; } // If the second is a single digit, put a 0 in front to make it look nice if (sec < 10 || sec == 0) { sec = '0' + sec; } // If the minute is a single digit, put a 0 in front to make it look nice if (min < 10 || min == 0) { min = '0' + min; } // Update the timer on the page document.getElementById("timer").textContent = min + ':' + sec; // Function to make it so that the clock actually ticks setTimeout("runClock()", 1000); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateTime() {\n displayTime(Date.now() - startTime);\n}", "function CalculateTime(){\n now = Date.now();\n deltaTime = (now - lastUpdate) / 1000;\n lastUpdate = now;\n}", "function getTime(){\n \n hr = hour();\n mn = minute();\n sc = second();\n}", "get time() {\n ...
[ "0.78482366", "0.74891764", "0.747218", "0.74089235", "0.74087775", "0.7273142", "0.72274244", "0.7159958", "0.7159132", "0.70785004", "0.7077206", "0.70758665", "0.7064674", "0.70517856", "0.70230776", "0.7008177", "0.6983398", "0.6962169", "0.69522995", "0.6944054", "0.6922...
0.0
-1
Resets the timer and the second and minute variables
function resetTimer() { $("#timer").html = '00:00'; stoptime = true; sec = 0; min = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Reset() {\n Set_Minutes(Reset_Val)\n Set_Seconds(0)\n}", "resetTimer() {\n clearInterval(this._timer);\n this._seconds = 0;\n this._setTimerContext();\n this.startTimer();\n }", "function resetTimer() {\n app.second = 0;\n app.minute = 0;\n app.hour = 0;\n...
[ "0.8050639", "0.7970525", "0.79167503", "0.78881335", "0.78530556", "0.78179616", "0.78093946", "0.77928287", "0.7748524", "0.7684355", "0.7646508", "0.7638876", "0.76304287", "0.75972396", "0.7529331", "0.752296", "0.7517838", "0.7511917", "0.7511917", "0.7490284", "0.747214...
0.77610654
8
Will check if the database exists, if not create it based on the configuration file stored on each feature.
start(){ var self = this; this.allViews = []; return new Promise((resolve, reject)=>{ this._createDatabase(this.database) .then(()=>{ self.initialize(); self._fetchModules(); return Promise.all(self.allViews); }).then((result)=>{ self._insertTestToken(); //just for mocha tests resolve({ name: self.database.name, url: self.database.url, status: 'Ready' }); }).catch((error)=>{ reject(error); console.log(error); //TODO Better error handler }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "checkDatabase(){\n var query = `CREATE DATABASE IF NOT EXISTS ` + config.SQL_DATABASE\n this.db.run(query)\n }", "static dbExists() {\n return fileExists(`${config.database.path}/db-${config.production ? 'production' : 'testing'}.db`);\n }", "static createNewDatabase() {\n idb...
[ "0.76877075", "0.72865814", "0.7219097", "0.7039236", "0.6914722", "0.67895335", "0.67783433", "0.6734701", "0.67195857", "0.6717006", "0.6681182", "0.662761", "0.66150934", "0.652547", "0.6447937", "0.6436132", "0.6353212", "0.6348435", "0.6336486", "0.6333336", "0.6315547",...
0.0
-1
Based on the database host and name, initialize the database to be used.
initialize(){ this.db = Cloudant(this.database.url).use(this.database.name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initializeDatabase(databaseName) {\n sql = `DROP DATABASE IF EXISTS ${databaseName};`\n queryReturn(sql, `${databaseName} Removed`)\n sql = `CREATE DATABASE ${databaseName};`\n queryReturn(sql, `${databaseName} Created`)\n sql = `USE ${databaseName};`\n queryReturn(sql, `${databaseName} ...
[ "0.7073356", "0.65937734", "0.6475255", "0.63976085", "0.63674206", "0.63281775", "0.6305559", "0.6298999", "0.6272959", "0.61993825", "0.61862105", "0.6177648", "0.6109302", "0.6106763", "0.60967624", "0.60928077", "0.60662997", "0.60650474", "0.6060639", "0.60499984", "0.60...
0.6392695
4
Will retrieve all features (it's directory) inside the folder features.
_fetchModules(){ var directories = fs.readdirSync('./features/'); for (let directory of directories){ if (!directory.includes('.')) { //means is a directory this._requireModules('./features/' + directory, directory); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getFeatures() {\n let filesGlob = 'e2e/features/**/*.feature';\n let files = glob.sync(filesGlob);\n return _.sortedUniq(files);\n }", "function Features(baseUrl, path) {\n if (path === void 0) { path = \"features\"; }\n return _super.call(this, baseUrl, path) || this;\n }", "async f...
[ "0.6948308", "0.6406881", "0.59143454", "0.5875625", "0.5875625", "0.584231", "0.5812367", "0.5620149", "0.55529916", "0.5527651", "0.5497239", "0.5496281", "0.5475285", "0.5438347", "0.5433545", "0.54192626", "0.5404455", "0.53642446", "0.53452283", "0.5341213", "0.5338877",...
0.66896826
1
This method will provide a token for bdd tests (if it does not exists)
_insertTestToken(){ var self = this; if (!process.env.VCAP_SERVICES){ var doc = { type: "SESSION", cn: 'BDD - Mocha Test Automation', uid: "000000631", mail: "bddmocha@xx.ibm.com", expiration: moment().add(1, 'years').format(), cleanUp: moment().add(1, 'years').format(), token: this.tests.token }; let options = { design: 'session', view: 'getAllSessions', query: {keys: [doc.token]} }; this.select(options) .then((result) => { if (Array.isArray(result) && result.length === 0) { self.insert(doc); //is a promise but I dont care when it will be fulfilled. } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateToken() {\n return null; // TODO: add a token generation\n}", "constructor(token) {\n this.token = token || null;\n }", "function getToken() {\n return token;\n }", "async generateFakeToken() {\n const tokenParams = {\n name: \"FakeSmartKey\",\n quantity: 100000 * Set...
[ "0.61370695", "0.6109818", "0.6096685", "0.6037566", "0.6010493", "0.59130096", "0.58821994", "0.58625156", "0.58464694", "0.5812465", "0.5762936", "0.57585067", "0.57368034", "0.57208526", "0.5668086", "0.56536937", "0.56443506", "0.5611281", "0.5583781", "0.55614454", "0.55...
0.0
-1
extract score from the RT page by parsing the responseText as a document
function parse_score_from_page(resp) { var parser = new DOMParser(); var doc = parser.parseFromString(resp, "text/html"); score = doc.getElementsByClassName(score_class_name); alert(score[0].innerText); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function regex_score_from_page(resp) {\n var reg = /<span class=\"meter-value superPageFontColor\"><span>([0-9]+)<\\/span>%<\\/span>/;\n matches = resp.match(reg);\n if (matches) {\n // something was read\n return matches[1];\n } else {\n return null;\n }\n}", "function parseR...
[ "0.6602257", "0.5934881", "0.58977073", "0.58546126", "0.5853684", "0.57777536", "0.5749384", "0.5618302", "0.5531622", "0.55277014", "0.5490527", "0.54724354", "0.5417775", "0.5382771", "0.53827345", "0.5369796", "0.5356507", "0.5337116", "0.53354067", "0.5303587", "0.526821...
0.7336652
0
extract score from the RT page by using a regex directly on the responseText string
function regex_score_from_page(resp) { var reg = /<span class="meter-value superPageFontColor"><span>([0-9]+)<\/span>%<\/span>/; matches = resp.match(reg); if (matches) { // something was read return matches[1]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parse_score_from_page(resp) {\n var parser = new DOMParser();\n var doc = parser.parseFromString(resp, \"text/html\");\n score = doc.getElementsByClassName(score_class_name);\n alert(score[0].innerText);\n}", "function cb(err,response,html){\n if(err){\n console.log(\"Error: \"+err);\n ...
[ "0.6781171", "0.57471776", "0.5534867", "0.54832387", "0.5479493", "0.5408177", "0.5329979", "0.5320748", "0.5273399", "0.52583045", "0.52325165", "0.52165055", "0.52106667", "0.51950043", "0.5164515", "0.5160843", "0.514278", "0.513841", "0.5128742", "0.51139593", "0.5082966...
0.7222925
0
transforms a netflix title to a form that can be recognized by Rotten Tomatoes i.e. all lowercase and underscores instead of spaces
function transform_title(title) { return title.toLowerCase().replace(/ /g, "_"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeTitle(title)\n {\n return title.replace(/^_+/, \"\").replace(/_+$/, \"\").replace(/[\\s_]+/g, \"_\")\n }", "function normalizeTitle(title)\n {\n return title.replace(/^_+/, \"\").replace(/_+$/, \"\").replace(/[\\s_]+/g, \"_\")\n ...
[ "0.76036656", "0.76036656", "0.7403169", "0.7398343", "0.73685473", "0.71056426", "0.7051153", "0.6883731", "0.6878643", "0.68730444", "0.6864358", "0.6853551", "0.6803316", "0.6795982", "0.6780726", "0.67515326", "0.6741295", "0.6737461", "0.6723154", "0.6712556", "0.668471"...
0.78623956
0
gets the title from a element
function get_title(overlay) { title = overlay.getElementsByClassName("bob-title"); if (title.length > 0) { return title[0].innerHTML; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTitle() {\n return document.getElementById( \"eow-title\" ).title;\n}", "function getElementTitle(elemID)\n{\n var elem = getElementTitleObj(elemID);\n \n if(elem != null)\n return elem.firstChild.nodeValue;\n \n return null;\n}", "function title() {\n var elm\n \n ...
[ "0.7789554", "0.7508065", "0.7491535", "0.7392357", "0.7356458", "0.7191203", "0.7103269", "0.7060952", "0.705065", "0.70072025", "0.6995395", "0.69399863", "0.69335914", "0.69226706", "0.691805", "0.6889259", "0.6856847", "0.6828293", "0.68066704", "0.6802883", "0.68012303",...
0.7252267
5
gets the score HTML elem from a boboverlay element
function get_score_elem(overlay) { score = overlay.getElementsByClassName("match-score"); if (score.length > 0) { return score[0]; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parse_score_from_page(resp) {\n var parser = new DOMParser();\n var doc = parser.parseFromString(resp, \"text/html\");\n score = doc.getElementsByClassName(score_class_name);\n alert(score[0].innerText);\n}", "function game_score(score) {\n var score_text = document.querySelector(\"#scor...
[ "0.6844799", "0.62210095", "0.6122035", "0.60941136", "0.6088753", "0.6002295", "0.5914622", "0.5889037", "0.58729726", "0.58698", "0.58690095", "0.5837149", "0.5828991", "0.5795911", "0.5795783", "0.5793955", "0.5789068", "0.57757604", "0.5750832", "0.5750774", "0.5749296", ...
0.7224918
0
gets the score for a titled work (i.e. a movie or a show)
function get_media_score(title) { httpGetAsyncWithBackup(base_movie_url + title, base_tv_url + title, regex_score_from_page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function score_this_term(w) {\r\n\ttotalscore = 0;\r\n\t// note that while we allow words to contain hyphens, the job dictionary array cannot handle them\r\n\tfor(y=3;y<socREC[w].length;y++) { totalscore = totalscore + job_dictionary[socREC[w][y].replace(/[-]+/g,'')]; };\r\n\treturn (totalscore / (socREC[w].length...
[ "0.65808254", "0.6494726", "0.63412297", "0.6318446", "0.6280942", "0.62382644", "0.62242", "0.62164676", "0.6195038", "0.6120751", "0.6091222", "0.6069211", "0.60467744", "0.6033865", "0.6015299", "0.5947122", "0.5931375", "0.58898896", "0.5841647", "0.58406174", "0.5816109"...
0.6301809
4
Ajax sync script require sync aditional JS scripts, makes things modular ////////////////////////////////////////////////////////////////////////////// add required scripts in post (Not actually required can just add in html...)
function require(jsFilePath) { var js = document.createElement("script"); js.type = "text/javascript"; js.src = jsFilePath; document.body.appendChild(js); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadScripts() {\r\n\t\t\t\twindow._sf_endpt = (new Date()).getTime();\r\n\t\t\t\tvar cbDomain = ((\"https:\"==document.location.protocol)?\"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/\":\"http://static.chartbeat.com/\");\r\n\t\t\t\tif(loadPubJS) {\r\n\t\t\t\t\t$.getScript(cbDomain+\"js...
[ "0.62715805", "0.6233539", "0.6222461", "0.6220024", "0.6207765", "0.61423105", "0.6140812", "0.6043715", "0.60374874", "0.5940494", "0.5930717", "0.5925215", "0.59093976", "0.5899497", "0.5859524", "0.58495665", "0.5847008", "0.58428633", "0.58154154", "0.5802853", "0.579584...
0.0
-1
function for get date from server and create page by this date
function ajaxGet(url) { let request = new XMLHttpRequest(); request.onreadystatechange = function () { if (request.readyState === 4) { let responseString = request.response; // get the string from the response let responsObject = JSON.parse(responseString); // convert it to an object let shopsList = "<ul>"; //create list of shops let shopsSelect = "<select name='shopName' id='shopId'>"; //create shops select for (let i = 0; i < responsObject.length; i++) { shopsList += "<li onclick='showProducts(event)'>" + responsObject[i].shopName; shopsSelect += "<option>" + responsObject[i].shopName + "</option>"; // if shop have some products, add list with them to this shop // if not just close tag if (responsObject[i].products.length > 0) { shopsList += "<ul style='display: none'>"; for (let j = 0; j < responsObject[i].products.length; j++) { shopsList += "<li>" + responsObject[i].products[j].productName + "</li>"; } shopsList += "</ul>" + "</li>"; } else { shopsList += "</li>" } } shopsList += "</ul>"; shopsSelect += "</select>"; document.querySelector('#shopsContainer').innerHTML = shopsList; document.querySelector('#shopSelect').innerHTML = shopsSelect; } }; request.open('GET', url); request.send(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_date(){\n var query = getQueryParams(document.location.search),\n date_num = query.date,\n today,\n year, day, month, divided, divided_2;\n\n if(date_num == '' || date_num == undefined){\n var today = new Date().toDateString();\n }else{\...
[ "0.6738669", "0.6681014", "0.65615445", "0.6250217", "0.6201182", "0.60084677", "0.5952636", "0.5919958", "0.58803165", "0.585419", "0.58519375", "0.58494693", "0.58410406", "0.5828988", "0.5828988", "0.5773622", "0.57640946", "0.57606095", "0.5759924", "0.5745572", "0.574204...
0.0
-1
this is our kitchen sink for runtime detection
function getBrowserInfo (browser) { // browser.runtime.getBrowserInfo is not available in Chromium-based browsers if (browser && browser.runtime && browser.runtime.getBrowserInfo) { return browser.runtime.getBrowserInfo() } return Promise.resolve({}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Runtime() {}", "static startDetecting() {}", "function runtime() {\n\t require(\"./runtime\");\n\t}", "inspectAll() {\n this.inspectContainer();\n this.inspectPlatform();\n this.inspectLinux();\n this.inspectMemory();\n this.inspectCPU();\n this.addTimeStam...
[ "0.6427791", "0.59849036", "0.59264344", "0.58525133", "0.58129233", "0.5807587", "0.5780381", "0.570474", "0.56607866", "0.54785043", "0.5404229", "0.53838736", "0.5381379", "0.53684026", "0.5364688", "0.5308227", "0.5292655", "0.5292655", "0.52862644", "0.52834785", "0.5280...
0.0
-1
Extras if advanced pricing no of customers has to be less than max
function pricing() { var _old = $('.old_price'); var _max = $('.max_coupons'); var _newp = $('.new_price'); var _basic = $('.basic_discount'); var _actual = $('.actual_discount'); var old_price = parseInt(_old.val() || 0); var max = parseInt(_max.val() || 0); var new_price = parseInt(_newp.val() || 0); var discount = parseInt(_basic.val() || 0); var margin = 20 $(_newp).bind("change keyup input", function () { var _input = parseInt($(this).val() || 0); var old_price = parseInt(_old.val() || 0); console.log(old_price); if (_input >= old_price) { //Dont allow passage console.log('Discounted price cant be higher'); } var diff = Math.round(((old_price - _input) * 100) / old_price); var actual = Math.round(diff - (diff * 0.2)); $(_basic).val(diff); $(_actual).val(actual); }); $(_basic).bind("change keyup input", function () { var _input = parseInt($(this).val() || 0); var old_price = parseInt(_old.val() || 0); var diff = Math.round(old_price - ((_input / 100) * old_price)); var actual = Math.round(_input - (_input * 0.2)); $(_newp).val(diff); $(_actual).val(actual); }); // $(_actual).bind("change keyup input", function () { // var _input = parseInt($(this).val() || 0); // var old_price = parseInt(_old.val() || 0); // // var diff = Math.round(old_price - ((_input / 100) * old_price)); // // $(_newp).val(diff); // }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getsDiscount() {\n if ((productsBought > 2) || (membership = premium)); }", "increase() {\n //console.log('max:'+this.field.max+' value:'+ this.field.value)\n\n //check if the quantity increase is legal variable in template is {{ page.product.calculatedMaxPurchase }}\n if (p...
[ "0.61738205", "0.58958006", "0.58197725", "0.5792308", "0.5789846", "0.57696944", "0.5769498", "0.57262045", "0.56606114", "0.5652421", "0.56358355", "0.56220865", "0.5590736", "0.5578664", "0.555101", "0.55396616", "0.55269355", "0.55056924", "0.54826874", "0.5460975", "0.54...
0.57780355
5
Standard was complaining about having break after a return. It looks weird without the break though.
function showLevel (level) { switch (level) { case 'info': return true case 'error': return false default: return true } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Break() {}", "function breakToken() {\n\t\tvar lastSwitch = {\n\t\t\tblock: 0,\n\t\t\tlabe: 0\n\t\t};\n\t\tif (switchStack.length > 0) {\n\t\t\tlastSwitch = switchStack[switchStack.length - 1];\n\t\t\tasm.push(' JMP end_switch_' + lastSwitch.labe);\n\t\t} else\n\t\t\tputError(lineCount, 14, '');\n\t\t//...
[ "0.7726979", "0.6889071", "0.68725663", "0.646671", "0.6422813", "0.6421474", "0.63679373", "0.6241119", "0.6231465", "0.6231465", "0.62306243", "0.62138", "0.62138", "0.62138", "0.62138", "0.6211771", "0.6200111", "0.6199043", "0.6167557", "0.61324596", "0.61324596", "0.61...
0.0
-1
Do not touch anything below this line
function getData() { return new Promise(function(resolve, reject) { let t = Math.random() * 2000 + 1000; setTimeout(function() { resolve(JSON.stringify({ data: [ 'Sweden', 'Denmark', 'Norway', 'Finland' ] })); }, t); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "private public function m246() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient private internal function m185() {}", "transient final protected i...
[ "0.7011995", "0.68903977", "0.6746071", "0.6732506", "0.6578236", "0.65570855", "0.6536234", "0.62942135", "0.6279998", "0.627063", "0.6230207", "0.62154293", "0.6186576", "0.6132039", "0.60404336", "0.59922737", "0.5967726", "0.5965206", "0.59605664", "0.59589696", "0.593321...
0.0
-1
remove params from url
function removeURLParameter(url, parameter) { //prefer to use l.search if you have a location/link object var urlparts = url.split('?'); if (urlparts.length >= 2) { var prefix = encodeURIComponent(parameter) + '='; var pars = urlparts[1].split(/[&;]/g); //reverse iteration as may be destructive for (var i = pars.length; i-- > 0; ) { //idiom for string.startsWith if (pars[i].lastIndexOf(prefix, 0) !== -1) { pars.splice(i, 1); } } url = urlparts[0] + (pars.length > 0 ? '?' + pars.join('&') : ""); return url; } else { return url; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stripInternalParams(url) {\n url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '')\n return url.href.replace(/\\?($|#)/, '$1')\n }", "function stripInternalParams(url) {\n url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '').replace(/^&/, '');\n return url.href.re...
[ "0.77300286", "0.7706872", "0.76609695", "0.76609695", "0.7589706", "0.7481737", "0.728987", "0.7210061", "0.71649736", "0.71148205", "0.71039253", "0.7103747", "0.71009415", "0.70602345", "0.7023504", "0.70103776", "0.6984044", "0.6959392", "0.6954322", "0.6853361", "0.68442...
0.6901151
19
the numth prime number. The range will be from 1 to 10^4. For example: if num is 16 the output should be 53 as 53 is the 16th prime number.
function primeMover( num ) { var primeCounter = 0, numCounter = 1; while ( primeCounter < num ) { numCounter++; // primeTime() is from primeTime.js if ( primeTime(numCounter) ) { primeCounter++; } } return numCounter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function euler003( num ) {\n // starting index (first prime)\n var i = 2;\n\n // while the number to process is greater than the index\n while ( num > i ) {\n // if the index is a factor of the number\n if ( num % i === 0 ) {\n // then divide by the index\n num = num...
[ "0.7282878", "0.71248364", "0.7111546", "0.71075314", "0.70946246", "0.6985431", "0.69840455", "0.6951526", "0.69152373", "0.6850002", "0.68459994", "0.6811153", "0.6798543", "0.67849714", "0.6688066", "0.66535544", "0.6653489", "0.66134006", "0.6610586", "0.65804756", "0.656...
0.6928115
8
The required type conversion methods.
getWeakType() { return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function coercion(type) {\n var fn;\n\n switch (type) {\n case 'integer':\n case 'float':\n case 'long':\n case 'double':\n fn = function (data) {\n if (isNaN(data)) {\n return data;\n }\n return Number(dat...
[ "0.59676445", "0.5963308", "0.5933781", "0.5930913", "0.58239305", "0.5720129", "0.5707462", "0.5638996", "0.56261986", "0.560319", "0.55965024", "0.5581127", "0.5482314", "0.5481875", "0.545371", "0.5446992", "0.5441699", "0.5441699", "0.5433662", "0.5422862", "0.5413892", ...
0.0
-1
Returns the inner nullable variation of this type.
nullable() { return this.ofType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNullableType(type) {\n\t return type instanceof GraphQLNonNull ? type.ofType : type;\n\t}", "function nullable(S) {\n return new Struct({\n type: `${S.type} | null`,\n schema: S.schema,\n validator: (value, ctx) => {\n return value === null || ctx.check(value, S);\n }\n });\n}", ...
[ "0.55777466", "0.5364237", "0.5364237", "0.5360343", "0.5250729", "0.5250729", "0.5250729", "0.52478653", "0.52389145", "0.5202061", "0.51071477", "0.5099812", "0.5099812", "0.5082126", "0.5044347", "0.50037664", "0.5000987", "0.49891302", "0.49857545", "0.49708968", "0.49587...
0.65310913
0
The required type conversion methods.
getWeakType() { return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function coercion(type) {\n var fn;\n\n switch (type) {\n case 'integer':\n case 'float':\n case 'long':\n case 'double':\n fn = function (data) {\n if (isNaN(data)) {\n return data;\n }\n return Number(dat...
[ "0.5965925", "0.59623545", "0.59330565", "0.592941", "0.58225757", "0.5721277", "0.57072836", "0.56389135", "0.56287885", "0.56027704", "0.5594936", "0.5580587", "0.5479905", "0.547935", "0.54529905", "0.5447988", "0.54406804", "0.54406804", "0.54344594", "0.54227614", "0.541...
0.0
-1
Complete the function below.
function maxXor(l, r) { var possibilities = [] for (var i = l; i <= r; i ++) { for (var j = l; j <= r; j++) { possibilities.push([i,j]) } } var results = [] for (var i = 0; i < possibilities.length; i++) { // console.log(possibilities[i]) results.push(possibilities[i][0] ^ possibilities[i][1]) } // console.log(results) var max; for (var i = 0; i < results.length; i++) { if (!max) { max = results[i] } else if (results[i] > max) { max = results[i] } } // console.log(max) return max }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "complete() {}", "function complete() {\n Y.log('complete');\n }", "function complete() {\n Y.log('complete');\n }", "function complete() {\n Y.log('complete');\n }", "function complete() {\n Y.log('complete');\n ...
[ "0.67816716", "0.67582", "0.67582", "0.67582", "0.67582", "0.6718839", "0.6656225", "0.6331708", "0.60500824", "0.6049132", "0.5952828", "0.5903742", "0.58880436", "0.58797926", "0.5873641", "0.5844233", "0.5839644", "0.58146936", "0.58117497", "0.58053505", "0.57816005", "...
0.0
-1
return [ relPath, link, root, fullPath ];
function parseUrlPath( urlPath ){ var relPath, link, root, fullPath; var mr= urlPath.match( /^\/([^\/\*]+\/\*)\/(.*)$/ ); if( !mr ){ relPath= decodeURIComponent( urlPath ); link=""; root= __dirname; fullPath= path.normalize( root+"/"+ relPath ); } else { link= mr[1]; if( !projectData[link] ) return Error( "link unfound, " + link ); relPath= (mr[2]||"/").replace(/(^|\/)\*\*(?=\/|$)/g, "$1.."); //decode "../" relPath= decodeURIComponent( relPath ); root= path.dirname( path.normalize( __dirname+"/"+ projectData[link].link )); fullPath= path.normalize( root+"/"+ relPath ); if( ! config.extension_allow_ouside_link && fullPath.indexOf(root)!==0 )return Error( "outside link path, " + link ); } if( ! config.extension_allow_ouside_root && fullPath.indexOf(__dirname)!==0 )return Error( "outside root path" ); return [ relPath, link, root, fullPath ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get fullpath()\t{ return \"\" + this.prefix + this.path }", "get href(){return $href;}", "get href(){return $href;}", "build_paths() {\n return {\n items: {\n list: { // Returns a list of items\n method: \"GET\",\n path: \"...
[ "0.62819606", "0.6246892", "0.6246892", "0.60245484", "0.5914918", "0.5851588", "0.5831832", "0.5810484", "0.5802259", "0.5709803", "0.56872046", "0.56817675", "0.56648386", "0.5637505", "0.56210774", "0.5606898", "0.5601961", "0.5558478", "0.551389", "0.5510573", "0.55085564...
0.53344405
36
Fetches games array from database
componentDidMount() { fetch('http://localhost:3000/game') .then(res => res.json()) .then(res => { this.props.getGames(res); this.props.searchGames(res); if (localStorage.getItem('gamesio')) { let newUser = this.props.user; newUser.games = res.filter(elem => elem.postedBy === this.props.user._id); this.props.setUser(newUser); localStorage.setItem('gamesio', JSON.stringify(newUser)); } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetchGameList(){\n\tfetch(\"https://rawg-video-games-database.p.rapidapi.com/games?page=1\", {\n\t\"method\": \"GET\",\n\t\"headers\": {\n\t\t\"x-rapidapi-host\": \"rawg-video-games-database.p.rapidapi.com\",\n\t\t\"x-rapidapi-key\": \"ba56e18dfbmsha0533de8919d27bp10d3dcjsn5229ce979bb3\"\n\t}\n\t})\n\t.th...
[ "0.7351573", "0.724474", "0.7069508", "0.70092386", "0.6968008", "0.69106674", "0.6894039", "0.68245816", "0.6788986", "0.67788315", "0.6775379", "0.6764847", "0.66569465", "0.6633889", "0.6591715", "0.6589859", "0.65495324", "0.6509901", "0.65023535", "0.64717805", "0.644743...
0.0
-1
Converts the current time to a hex color and then changes the background to that color every second
function displayHexClock() { // Get the current time var clock = new Date(), h = clock.getHours(), m = clock.getMinutes(), s = clock.getSeconds(); // Make sure that hours, minutes, and seconds are all 2 digits each if(h.toString().length < 2) { h = '0' + h; } if(m.toString().length < 2) { m = '0' + m; } if(s.toString().length < 2) { s = '0' + s; } var time = h + ':' + m + ':' + s; var color = '#' + h + m + s; // Change the background color to the hex color of the current time document.body.style.background = color; // Update the current time document.getElementById('time').innerHTML = time; // Update the current hex value document.getElementById('hexColor').innerHTML = color; // Set date var day = clock.getDate(); if (day % 100 == 11 || day % 100 == 12 || day % 100 == 13) { day = day + 'th'; } else if (day % 10 == 1) { day = day + 'st'; } else if (day % 10 == 2) { day = day + 'nd'; } else if (day % 10 == 3) { day = day + 'rd'; } else { day = day + 'th'; } date.innerHTML = dayNames[clock.getDay()] + ' ' + day + ' ' + monthNames[clock.getMonth()]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function col() {\r\n var d = new Date();\r\n var index = d.getSeconds() % 10;\r\n\r\n document.getElementById(\"clock\").style.color = '#' + color_array[index];\r\n\r\n setTimeout('col()', 1000);\r\n}", "function hexClock(){\n\tvar time = new Date();\n\t//you can do time.getHours())%12 for pm and am\n\tvar h...
[ "0.75235486", "0.74505585", "0.7351917", "0.7335107", "0.7249277", "0.7058916", "0.701177", "0.6995274", "0.6989783", "0.6962226", "0.6932402", "0.68911785", "0.6847236", "0.68471813", "0.66215", "0.65975475", "0.6550979", "0.65497714", "0.6548475", "0.6517327", "0.650155", ...
0.6494736
21
recursive add all site data
function AddSiteDataRec(arr, i){ if(i >= arr.length) return; var d = arr[i]; var tDay = new Date(d.time); var date = tDay.getFullYear()+"_"+(tDay.getMonth()+1)+"_"+tDay.getDate(); var SensorData = mongoose.model('SensorData_'+date, SensorDataSchema); //沒這筆資料才加入 SensorData.findOne({'_id': d._id}, function(err, found){ if(err) console.log(err); if(found) return AddSiteDataRec(arr, i+1); SensorData.create(d, function(){ //更新data sum var area = dataToDB.LatToArea(d.lat); //每日總結 tDay.setSeconds(0); tDay.setMinutes(0); tDay.setHours(0); var incValue = {}; incValue[area+"Sum"] = d.pm25; incValue[area+"Num"] = 1; SensorDailySum.findOneAndUpdate({ '_id': tDay}, {'$inc': incValue}, {upsert: true, new: true}, function(err, sum){ if(err) console.log(err); //每10分鐘總結 var t10min = new Date(d.time); t10min.setSeconds(0); t10min.setMinutes(Math.floor(t10min.getMinutes()/10)*10); //round to 10min Sensor10minSum.findOneAndUpdate({ '_id': t10min}, {'$inc': incValue}, {upsert: true, new: true}, function(err, sum){ if(err) console.log(err); AddSiteDataRec(arr, i+1); }); }); }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AddSiteRec(arr, i){\n\t\tif(i >= arr.length) return AddSiteDataRec(dataArray,0);\t//add site data after all site added\n\t\tvar site = arr[i];\n\t\tWeatherStation.findOneAndUpdate({ '_id': site._id}, {'$setOnInsert': site}, {upsert: true}, function(){\n\t\t\tAddSiteRec(arr, i+1);\n\t\t});\n\t}", "functi...
[ "0.64785624", "0.6382151", "0.58285034", "0.58135265", "0.56933355", "0.5542384", "0.54409045", "0.5310655", "0.52775383", "0.52691025", "0.52672845", "0.52454656", "0.52335244", "0.51875776", "0.518413", "0.5109049", "0.5103593", "0.5071137", "0.5059281", "0.50586885", "0.50...
0.5985926
2
recursive add all sites
function AddSiteRec(arr, i){ if(i >= arr.length) return AddSiteDataRec(dataArray,0); //add site data after all site added var site = arr[i]; SensorSite.findOneAndUpdate({ '_id': site._id}, {'$set': { 'lat': site.lat, 'lng': site.lng }, '$setOnInsert': site}, {upsert: true}, function(){ AddSiteRec(arr, i+1); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addAll() {}", "function AddSiteRec(arr, i){\n\t\tif(i >= arr.length) return AddSiteDataRec(dataArray,0);\t//add site data after all site added\n\t\tvar site = arr[i];\n\t\tWeatherStation.findOneAndUpdate({ '_id': site._id}, {'$setOnInsert': site}, {upsert: true}, function(){\n\t\t\tAddSiteRec(arr, i+1);...
[ "0.598581", "0.59028655", "0.5475636", "0.54092544", "0.52430755", "0.52112955", "0.5178721", "0.51646996", "0.51457155", "0.5097964", "0.50721014", "0.5067919", "0.5063044", "0.50130963", "0.4997893", "0.4979793", "0.49714512", "0.4933651", "0.49198806", "0.48909092", "0.487...
0.58276397
2
recursive add all station data
function AddStationDataRec(arr, i){ if(i >= arr.length) return; var d = arr[i]; var tDay = new Date(d.time); var date = tDay.getFullYear()+"_"+(tDay.getMonth()+1)+"_"+tDay.getDate(); var PowerGen = mongoose.model('PowerGen_'+date, PowerGenSchema); PowerGen.findOneAndUpdate({ '_id': d._id}, {'$setOnInsert': d}, {upsert: true}, function(){ AddStationDataRec(arr, i+1); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AddStationRec(arr, i){\n\t\tif(i >= arr.length) return AddStationDataRec(dataArray,0);\n\t\tvar station = arr[i];\n\t\tPowerStation.findOneAndUpdate({ '_id': station._id}, {'$setOnInsert': station}, {upsert: true}, function(){\n\t\t\tAddStationRec(arr, i+1);\n\t\t});\n\t}", "function addStationNames(){\...
[ "0.60072726", "0.58481765", "0.5746197", "0.5733427", "0.5698432", "0.567814", "0.55355567", "0.550788", "0.5486431", "0.5481462", "0.54410344", "0.5350375", "0.5339503", "0.53140485", "0.5307077", "0.52734774", "0.5178904", "0.5166515", "0.51193494", "0.511919", "0.5105172",...
0.58297
2
recursive add all station
function AddStationRec(arr, i){ if(i >= arr.length) return AddStationDataRec(dataArray,0); var station = arr[i]; PowerStation.findOneAndUpdate({ '_id': station._id}, {'$setOnInsert': station}, {upsert: true}, function(){ AddStationRec(arr, i+1); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addAll() {}", "function addStationNames(){\n\n\tvar stations = getWMATAStations(getStationID);\n}", "addAll(items) {\n if (items.length == 0) throw new Error(green('No data provided when adding a new node! [from: addAll()]'))\n\n for (let i = 0; i < items.length; i++) {\n this.addNode(items...
[ "0.6013721", "0.5909386", "0.5846324", "0.58290803", "0.5708793", "0.5704133", "0.5518948", "0.54638314", "0.53950274", "0.536793", "0.53492403", "0.53479505", "0.5338488", "0.5211997", "0.5202065", "0.5154406", "0.5100737", "0.51006615", "0.50508976", "0.50264364", "0.502091...
0.6195411
0
recursive add all site data
function AddSiteDataRec(arr, i){ if(i >= arr.length) return; var d = arr[i]; var tDay = new Date(d.time); var date = tDay.getFullYear()+"_"+(tDay.getMonth()+1)+"_"+tDay.getDate(); var WeatherData = mongoose.model('WeatherData_'+date, WeatherDataSchema); WeatherData.findOneAndUpdate({ '_id': d._id}, {'$setOnInsert': d}, {upsert: true}, function(){ AddSiteDataRec(arr, i+1); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AddSiteRec(arr, i){\n\t\tif(i >= arr.length) return AddSiteDataRec(dataArray,0);\t//add site data after all site added\n\t\tvar site = arr[i];\n\t\tWeatherStation.findOneAndUpdate({ '_id': site._id}, {'$setOnInsert': site}, {upsert: true}, function(){\n\t\t\tAddSiteRec(arr, i+1);\n\t\t});\n\t}", "functi...
[ "0.64785624", "0.6382151", "0.5985926", "0.58135265", "0.56933355", "0.5542384", "0.54409045", "0.5310655", "0.52775383", "0.52691025", "0.52672845", "0.52454656", "0.52335244", "0.51875776", "0.518413", "0.5109049", "0.5103593", "0.5071137", "0.5059281", "0.50586885", "0.503...
0.58285034
3