2021-08-21 19:14:52 +02:00
|
|
|
//= require jquery
|
2021-06-15 14:01:04 +02:00
|
|
|
//= require simple-jekyll-search
|
2021-08-09 19:17:38 +02:00
|
|
|
// require bootstrap
|
|
|
|
// require bootstrap-sprockets
|
2021-08-27 13:09:00 +02:00
|
|
|
// require morphext
|
2021-08-25 00:27:38 +02:00
|
|
|
//= require cookie
|
2021-06-15 14:01:04 +02:00
|
|
|
|
2021-02-02 21:24:42 +01:00
|
|
|
/* Set the width of the side navigation to 250px */
|
|
|
|
function openNav() {
|
|
|
|
document.getElementById("mySidenav").style.width = "250px";
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Set the width of the side navigation to 0 */
|
|
|
|
function closeNav() {
|
|
|
|
document.getElementById("mySidenav").style.width = "0";
|
|
|
|
}
|
|
|
|
|
2021-01-28 16:05:16 +01:00
|
|
|
$(document).ready(function () {
|
2019-08-13 15:16:48 +02:00
|
|
|
var sjs = SimpleJekyllSearch({
|
|
|
|
searchInput: document.getElementById('search-input'),
|
|
|
|
resultsContainer: document.getElementById('results-container'),
|
|
|
|
json: '/search.json',
|
|
|
|
searchResultTemplate: '<a class="dropdown-item" href="{url}">{title}</a>',
|
2021-06-15 14:01:04 +02:00
|
|
|
noResultsText: '<a class="dropdown-item" href="#">'+ $("meta[name='no-results']").attr('content') +'</a>',
|
2019-08-13 15:16:48 +02:00
|
|
|
exclude: ["https://blog.unitoo.it", "https://blog.unitoo.pw"]
|
|
|
|
});
|
2019-08-14 15:57:40 +02:00
|
|
|
|
2022-09-24 16:06:20 +02:00
|
|
|
$(".btn-open-nav").off()
|
|
|
|
$(".btn-open-nav").on('click', function() {
|
|
|
|
openNav();
|
|
|
|
})
|
|
|
|
|
|
|
|
$(".closebtn").off()
|
|
|
|
$(".closebtn").on('click', function() {
|
|
|
|
closeNav();
|
|
|
|
})
|
|
|
|
|
2021-08-27 13:09:00 +02:00
|
|
|
// $(".morphext-bounce-in").Morphext({
|
|
|
|
// animation: "bounceIn",
|
|
|
|
// speed: 2500
|
|
|
|
// });
|
2019-08-14 15:57:40 +02:00
|
|
|
|
2021-08-27 13:09:00 +02:00
|
|
|
// $(".morphext-bounce-left").Morphext({
|
|
|
|
// animation: "zoomInLeft",
|
|
|
|
// speed: 4500
|
|
|
|
// });
|
2019-08-14 15:57:40 +02:00
|
|
|
|
2021-08-27 13:09:00 +02:00
|
|
|
// $(".morphext-bounce-up").Morphext({
|
|
|
|
// animation: "bounceInUp",
|
|
|
|
// speed: 6500
|
|
|
|
// });
|
2019-08-13 15:16:48 +02:00
|
|
|
});
|