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() { | |
// Get local time as ISO string with offset at the end | |
var now = new Date(); | |
var tzo = -now.getTimezoneOffset(); | |
var dif = tzo >= 0 ? '+' : '-'; | |
var pad = function(num) { | |
var norm = Math.abs(Math.floor(num)); | |
return (norm < 10 ? '0' : '') + norm; | |
}; | |
return now.getFullYear() |
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 src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> | |
<script> | |
/* jQuery is required for this script. | |
*/ | |
/// load jQuery in no-conflict mode | |
jQuery.noConflict(); | |
(function($) { | |
/// dom ready | |
$(function() { | |
$('body').on('click', function(e){ |
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> | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
window.dataLayer.push({ | |
"event" : "contactForm7Submitted", | |
"formId" : event.detail.contactFormId, | |
"response" : event.detail.inputs | |
}) | |
}); | |
</script> |
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 id="gtm-jq-ajax-listen" type="text/javascript"> | |
(function() { | |
'use strict'; | |
var $; | |
var n = 0; | |
init(); | |
function init(n) { |
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
Every web developer should know how to properly code a responsive website. Bootstrap 3 is an ultimate | |
framework that learns you how to think when coding responsive websites and makes their creation much easier and faster. | |
When I was learning Bootstrap 3, I was looking for a simple list of basic Bootstrap 3 classes with description and there were none - only a few lists for Bootstrap 2, without any description, therefore pretty useless for my intentions. | |
Basic Bootstrap Classes | |
.container | |
sets fixed width to an element (which changes depending on a screen size to other fixed values, so it's still responsive) on all screen sizes except xs - on xs, the width is calculated automatically (this behaviour can be changed) | |
a fixed width responsive website should be wrapped in .container (or just the content without menu, whatever - it's up to you) |
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
#Spring application.properties file will be database connection | |
spring.datasource.url=jdbc:mysql://localhost:3306/springmvc | |
spring.datasource.username=root | |
spring.datasource.password= | |
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | |
spring.jpa.hibernate.ddl-auto=update | |
spring.jpa.show-sql= true | |
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect |
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
java |