Skip to content

Instantly share code, notes, and snippets.

gkilmain

Block or report user

Report or block gkilmain

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View consumer-template.html
<record-text>Regular text</record-text>
<record-text class="title">Title text</record-text>
@gkilmain
gkilmain / templatestuff.html
Last active May 13, 2018
Angular Template stuff
View templatestuff.html
<ng-template #loginButtons>
<button (click)="login()">{{loginText}}</button>
<button (click)="signUp()">{{signUpText}}</button>
</ng-template>
<ng-template #logoText>
<h3>Super Awsome Logo Text</h3>
</ng-template>
<ng-template #logo>
@gkilmain
gkilmain / app.js
Created Dec 10, 2014
custom checkbox
View app.js
angular.module('app', [])
.controller('MainCtrl', MainCtrl)
.directive('checkBox', checkBox);
function checkBox() {
var directive = {
controller: Controller,
link: link,
restrict: 'E',
require: 'ngModel',
View index
.card {
width: 50px;
height: 100px;
border: 1px solid #ccc;
border-radius: 4px;
float: left;
margin: 5px;
}
View base
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:300);
body {
font-family: 'Source Sans Pro', sans-serif;
background-color: #F6F8F8;
font-size: 1.1em;
//font-weight: bold;
}
.cf:before, .cf:after {
View main.js
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="stylesheet" type="text/css" href="css/test.css">
</head>
<body>
<div class="container">
<div id="playerScore"></div>
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="stylesheet" type="text/css" href="css/test.css">
</head>
<body>
<div class="container">
<div id="playerScore"></div>
View main.js
var deck = [2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11];
// Creates a Call To Action div
// Add button class to create basic button style
// @params c - the class
// @params i - the id e.g. ctaHit, ctaStand etc
// @params t - the text
// @params f - the function to call onclick
function ctaGenerator(c, i, t) {
var cta = document.createElement('div');
cta.setAttribute('class', c);
View index
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="stylesheet" type="text/css" href="css/test.css">
</head>
<body>
<div class="container">
<div id="dealersHand" class="cf"></div>
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Email One Off</title>
<style type="text/css"></style>
</head>
<body>
<form action="process.php" method="POST">
<p>To</p>
<input type="text" name="to" id="to" />
You can’t perform that action at this time.