This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var l = 5, | |
b = 5; | |
function sayHello(greeting){ | |
greeting(function(){ | |
return 'Hello world' | |
}); | |
} | |
function area1(x,y,callback){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo(bar) { | |
var bar = bar || 0; //This sets bar to 0 if it's not already set | |
console.log(bar); | |
} | |
foo(); | |
foo(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config1 = { | |
local: { | |
mode: 'local', | |
port: 3000, | |
mongo: { | |
host: '127.0.0.1', | |
port: 27017 | |
}, | |
connect : [3,2,1,0], | |
'sock' : [3,2,1,0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/',function(req,res){ | |
res.sendFile('index.html'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function initMap() { | |
var contentString = '<div id="content">'+ | |
'<div id="bodyContent">'+ | |
'<p><h3>Sysetup.com</h3>' + | |
'<address class="md-margin-bottom-40">'+ | |
'<i class="fa fa-phone"></i> <a href="tel:+573116417210">COL: (+57) 311 641 7210 </a> <br>'+ | |
'<i class="fa fa-phone"></i> <a href="tel:+573209004589">COL: (+57) 320 900 4589 </a> <br>'+ | |
'<i class="fa fa-home"></i> Cll 2 14-02, 630004 Armenia Q. Colombia. <br>'+ | |
'<i class="fa fa-envelope"></i> <a href="mailto:contact@sysetup.com">contact@sysetup.com</a>'+ | |
'</address>'+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Steps: | |
1. Go to: http://map.google.com | |
2. Pin whatever point in the map. | |
3. Menu/Share or embed map. | |
*/ | |
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3977.2854808824613!2d-75.66567468522176!3d4.5425483442734!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8e38f4ff13a056e9%3A0x78c9afbeed619948!2sSYSETUP!5e0!3m2!1sen!2sco!4v1472421311744" width="2200" height="300" frameborder="0" style="border:0" allowfullscreen> | |
</iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = window.location.href; | |
url = url.split('.html')[0]; | |
//url = url.substring(0, url.lastIndexOf(".")); | |
window.history.replaceState( null, null, url ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).on('beforeunload', function (){ | |
//code... | |
return false; | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
App.init(); | |
PageComingSoon.initPageComingSoon(); | |
$('body').css('margin-top', Number($(document).height() - $('.coming-soon-v3').height())/2); | |
$(window).resize(function() { | |
$('body').css('margin-top', Number($(document).height() - $('.coming-soon-v3').height())/2); | |
}); | |
}); |