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
1. sudo apt install certbot python3-certbot-nginx | |
2. sudo certbot --nginx -d domain.com -d www.domain.com | |
3. sudo crontab -e | |
4. 0 0 * * * /usr/bin/certbot renew --quiet | |
5. sudo systemctl restart nginx |
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
// Extra big for Twitter Bootstrap | |
@media screen and (min-width: 1400px) { | |
.container { | |
width: 1370px; | |
} | |
} | |
@media screen and (min-width: 1600px) { | |
.container { | |
width: 1570px; |
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
//Current sidebar-menu item | |
let url = window.location; | |
let element = $('.dt-side-nav .dt-side-nav__link').filter(function () { | |
return this.href == url; | |
}).addClass('active').parent().addClass('selected'); | |
while (true) { | |
if (element.is('a')) { | |
element = element.parent().addClass('selected').parent().addClass('active'); | |
} |
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
<script> | |
window.onload = function(){ | |
if(window.innerWidth >= 1024) | |
document.getElementById('video-container').innerHTML = '<video autoplay id="bgvid" poster="img/water-on-glass.jpg"><source src="videos/medoff-video.webm" type="video/webm"><source src="videos/medoff-video.mp4" type="video/mp4"></video>' | |
}; | |
</script> |