Instantly share code, notes, and snippets.

View BTPeopleHideINT.html
<style type="text/css">
.bt-persona-account-type {
visibility: hidden;
}
</style>
View countdown-redirect.html
<!-- Modify this according to your requirement -->
<h3>
Redirecting to duckdev.com after <span id="countdown">10</span> seconds
</h3>
<!-- JavaScript part -->
<script type="text/javascript">
// Total seconds to wait
var seconds = 10;
View reactBasicTemplate.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React Template</title>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
<style>
</style>
View fourDigitYearjQueryGeneric.html
<!-- include these in the head -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
var copyrightYear = (new Date()).getFullYear();
var copyrightVerbiage = "Tyrell Corporation. Trademarks and registered trademarks are owned by Tyrell Corporation or its subsidiaries.";
element = document.getElementById("Copyright");
element.innerHTML = "&copy;" + copyrightYear + " " + copyrightVerbiage;
});
View fontAwesomeSmiley.html
<i class="fa fa-smile-o"></i>
View echo.php
<!DOCTYPE html>
<html>
<head>
<!-- Include Bootstrap and jQuery -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
View fizzbuzz.js
for (number = 1; number <= 100; number++) {
if (number % 3 == 0 && number % 5 == 0) {
console.log ("FizzBuzz");
} else if (number % 3 == 0) {
console.log ("Fizz");
} else if (number % 5 == 0) {
console.log ("Buzz");
} else {
console.log(number);
}
View JSredirect.html
<script type="text/javascript">
// delay, in milliseconds
var delay = 6000;
var URL = "https://example.com";
document.write("<h1>This page has moved. You will be redirected in " + delay/1000 + " seconds. If you are not redirected, please <a href=" + URL + ">follow this link</a>.</h1>");
setTimeout(function(){ window.location = URL; }, delay);
</script>
View hideByLine.css
<style type="text/css">
/* Hide by-line author and time */
ul li div div span span .ms-subtleLink {
visibility: hidden;
display: none;
}
/* Uncomment to Hide entire by-line
ul li .ms-textSmall span {
visibility: hidden;
display: none;
View hideInlineBlogByline.css
<style type="text/css">
.ms-metadata.ms-textSmall span {
visibility: hidden;
}
</style>