// numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"
let numbersInArr = numbers.split(' ').map(Number)
let min = Math.min(...numbersInArr);
let max = Math.max(...numbersInArr);
let result = max +' '+min
return result;
}
if (navigator.appVersion.indexOf("Win")!=-1){
ff=navigator.userAgent.search("Firefox");
if(ff>-1){
$("#nav a").addClass('padding-right');
}
}
else{
$("#nav a").removeClass('padding-right');
}
body{
font-family:arial;
}
#nav a{
width:120px;
height:40px;
display:block;
line-height:40px;
background: #EA7A0C;
color:#fff;
text-align:center;
font-size:13px;
text-decoration: none;
}
.padding-right{
padding-right:100px;
}
var windowWidth = $(window).width();
if(windowWidth <=767){
collapse();
}
else{
}
function collapse(){
$('.navbar-collapse').click('li', function() {
$('.navbar-collapse').collapse('hide');
});
}
//Change the port
connect: {
options: {
port: 8080,
// change this to '0.0.0.0' to access the server from outside
hostname: 'localhost'
},
// grunt is installed locally, as verified by npm ls | grep grunt
// just git clone steps git clone https://github.com/ssthil/AngularJS-Yeoman.git // just check bower version bower --v 1.3.3 // just check npm version npm --v 1.3.24 // just check grunt version grunt -version grunt-cli v0.1.13 grunt v0.4.5 //if you are still getting error like, Fatal error: unable to find local grunt then run this npm install grunt --save-dev // just check ruby version ruby -version // just check compass version compass -version // npm install npm install // bower install npm install -g bower // exit from window Git Bash exit // bower install npm install bower // bower install run this command ./node_modules/bower/bin/bower install
// first check the branch git branch // create a new branch [development] git branch development // checkout into new branch [development] git checkout development // pull from master git pull origin master // push into new branch [development] git push origin development
// Git: “please tell me who you are” error git init git config user.name "someone" git config user.email "someone@someplace.com" git add * git commit -m "Initial commit" git remote add origin //your github url //pull those changes git pull origin master //now, push your work to your new repo git push origin master
git init git add . git commit -m "Initial commit" git remote add origin https://github.com/username/Hello-World.git # Creates a remote named "origin" pointing at your GitHub repository git push origin master # Sends your commits in the "master" branch to GitHub
$("#environment").each(function(){ $(this).change(function () { if ($(this).val() == "Non Security Device") { $('#cla_checkbox').prop('checked', true); } else{ $('#cla_checkbox').prop('checked', false); } }); });
span is an inline element, not a block element, and they don't respect margin. You can use padding or make the span display:inline-block; and then use margins.
function highAndLow(numbers){ // numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6" let numbersInArr = numbers.split(' ...