This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function removeElement(el) { | |
if (el) { | |
el.remove(); | |
} | |
} | |
function removeElementById(id, parent = false) { | |
var el = document.getElementById(id); | |
if (el && parent) { | |
el = el.parentElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class Present | |
{ | |
protected $_is; | |
static protected $_now; | |
static protected $_time; | |
public function __construct() | |
{ | |
self::$_now = $this; |