All posts by Rampit
HTML
Printr Tag
Echo
<?php echo esc_url( get_template_directory_uri() ); ?>
Jquery Test
jQuery(document).ready(function(){
jQuery("p").click(function(){
jQuery(this).hide();
});
});
Jquery Function
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
Script Function
<script>
function myFunction(a, b) {
return a * b;
}
document.getElementById("demo").innerHTML = myFunction(4, 3);
</script>
Script Tag
<script>
if(navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)) {
document.write('<meta name="viewport" content="width=400');
}
</script>
Link
<link rel="stylesheet" type="text/css" href="theme.css">
-moz-box-shadow: inset 0 0 10px #000000;
-webkit-box-shadow: inset 0 0 10px #000000;
box-shadow: inset 0 0 32px #6B6666;
Style
<style>
h1 {color:red;}
p {color:blue;}
</style>
background:-webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
li:nth-child(-n+5) {
color: green;
}
</style>