Skip to content

Instantly share code, notes, and snippets.

James Martin jamesnotjim

View GitHub Profile
@jamesnotjim
jamesnotjim / BTPeopleHideINT.html
Created Jul 10, 2018
BindTuning People Web Part (style mod)
View BTPeopleHideINT.html
<style type="text/css">
.bt-persona-account-type {
visibility: hidden;
}
</style>
@jamesnotjim
jamesnotjim / countdown-redirect.html
Created Jul 9, 2018 — forked from Joel-James/countdown-redirect.html
Count Down Redirect Uisng JavaScript
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;
@jamesnotjim
jamesnotjim / reactBasicTemplate.html
Last active Jun 22, 2018
A basic template for React experimentation
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;
});
@jamesnotjim
jamesnotjim / fontAwesomeSmiley.html
Last active Dec 15, 2017
Adding a Smiley Face via Font Awesome
View fontAwesomeSmiley.html
<i class="fa fa-smile-o"></i>
@jamesnotjim
jamesnotjim / echo.php
Last active Oct 6, 2017
A PHP 'Hello World!' as well as a useful PHP/Bootstrap/jQuery skeleton
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);
}
@jamesnotjim
jamesnotjim / JSredirect.html
Created Sep 6, 2017
A pure JS redirect with configurable URL and delay.
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>
@jamesnotjim
jamesnotjim / hideInlineBlogByline.css
Created Apr 18, 2017
Hides the byline and dateline on O365/SharePoint Online Blogs that use the Inline post layout
View hideInlineBlogByline.css
<style type="text/css">
.ms-metadata.ms-textSmall span {
visibility: hidden;
}
</style>
@jamesnotjim
jamesnotjim / removeAllCapsTransform.css
Last active Apr 14, 2017
Removes all-caps styling from BindTuning's Ignite theme
View removeAllCapsTransform.css
<style type="text/css">
h1, h2, h3, h4, h5, h6 {
text-transform: none !important;
}
</style>
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.