Image Upload Preview gist using UIKit 3, Javascript and HTML File Input Element
A Pen by Craig Wayne on CodePen.
trigger: | |
batch: true | |
branches: | |
include: | |
- '*' | |
pr: | |
branches: | |
include: | |
- '*' |
Image Upload Preview gist using UIKit 3, Javascript and HTML File Input Element
A Pen by Craig Wayne on CodePen.
import { Pipe, PipeTransform } from '@angular/core'; | |
import { Observable, timer } from 'rxjs'; | |
import { map } from 'rxjs/operators'; | |
@Pipe({ | |
name: 'countdown' | |
}) | |
export class CountdownPipe implements PipeTransform { | |
/** |
if( !is_admin() && class_exists('\DOMDocument' ) ){ | |
/** | |
* Checks if a gravity form has been submitted | |
* @return bool | |
*/ | |
function form_submitted(){ | |
return isset( $_POST['gform_submit'] ) && '1' === $_POST['gform_submit']; | |
} | |
Managing undocumented and convoluted front-end angular applications is a nightmare as many of you know...
However this document will serve to help those tasked with this management.
tsconfig.json changes
{
"compilerOptions": {
"noUnusedLocals": true,
#!/bin/bash | |
########################################################################################### | |
# Find's All *.csproj files in a directory | |
# then executes a dotnet build on that project | |
# if the build fails, it will stop the script execution | |
########################################################################################### | |
separator="==============================================================================="; | |
search="*.csproj" | |
startingDirectory=$PWD; |
'use strict'; | |
var inquirer = require('inquirer'); | |
var questions = [ | |
{ | |
type: 'input', | |
name: 'url', | |
message: 'Enter in a URL', | |
required: true, | |
validate: function(value) { |
function getAllCSS(element){ | |
if( !element instanceof HTMLElement ){ | |
console.warn("Select a valid HTML Element before proceeding"); | |
return ''; | |
} | |
let cssString = ''; | |
const cssObj = window.getComputedStyle(element); | |
let cssAttributes = []; |