This file contains hidden or 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
<div id="navbarHTML"></div> |
This file contains hidden or 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).bind("load resize", function () { | |
let windowWidth = $(window).innerWidth(); | |
if (windowWidth < 768) { | |
... | |
} else if (windowWidth < 1025) { | |
... | |
} else { | |
... | |
} | |
}); |
This file contains hidden or 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
$('#sidebar-collapse-parent').on('show.bs.collapse', function () { | |
$('#sidebar-collapse-parent .collapse.in').each(function () { | |
$(this).collapse('hide'); | |
}); | |
}); |
This file contains hidden or 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
<select class="selectpicker actions-more" data-style="btn-default btn-xs" data-width="auto" data-container="body" title="Horse..."> | |
<option disabled>Substitute</option> | |
<option value="withdraw">Withdraw</option> | |
<option value="comment">Comment</option> | |
<option value="viewlog">View log</option> | |
</select> |
This file contains hidden or 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 n = 1234567890; | |
String(n).replace(/(.)(?=(\d{3})+$)/g,'$1,') | |
// "1,234,567,890" | |
// Replace $1, with $1. or $1space to change separator |
This file contains hidden or 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
$('select').change(function () { | |
if ($(this).val() == "thevalue") { | |
$('#themodal').modal('show'); | |
} | |
}); |
This file contains hidden or 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
<label class="btn btn-default btn-file"> | |
Browse <input type="file" style="display: none;"> | |
</label> |
This file contains hidden or 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
<select class="selectpicker" onchange="location = this.options[this.selectedIndex].value;" data-width="auto" data-title="Manage entries" data-style="btn-sm btn-info"> | |
<option value="link-1.html">CSI5*</option> | |
<option value="link-2.html">CSI3*</option> | |
</select> |
This file contains hidden or 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
div[style] { | |
background: yellow !important; | |
} |
This file contains hidden or 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() { | |
$('#bootstrapToggleID').change(function() { | |
$('.label-accepted').closest('TR').toggleClass("hidden"); | |
$("tr:not(.hidden)").each(function (index) { | |
$(this).toggleClass("stripe", !!(index & 1)); | |
}); | |
}); | |
}); |
NewerOlder