Here is some code on how to embed Base64 in HTML:
<img src="data:image/jpeg;base64,BASE64_STRING"/>| $(document).ready(function () { | |
| var previewNode = document.querySelector("#template"); | |
| previewNode.id = ""; | |
| var previewTemplate = previewNode.parentNode.innerHTML; | |
| previewNode.parentNode.removeChild(previewNode); | |
| var eventsDropzone = new Dropzone(document.body, { | |
| // The configuration we've talked about above | |
| thumbnailWidth: 80, |
| <video controls="" width="400"> | |
| <source src="http://66.128.61.175/reel/1cc976948e74aa62f7a7fde16e64fb6b/360p" type="video/mp4"> | |
| Your browser does not support HTML5 video. | |
| </video> |
| $.fn.select2.amd.define('select2/data/extended-ajax',['./ajax','../utils','jquery'], function(AjaxAdapter, Utils, $){ | |
| function ExtendedAjaxAdapter ($element,options) { | |
| //we need explicitly process minimumInputLength value | |
| //to decide should we use AjaxAdapter or return defaultResults, | |
| //so it is impossible to use MinimumLength decorator here | |
| this.minimumInputLength = options.get('minimumInputLength'); | |
| this.defaultResults = options.get('defaultResults'); | |
| ExtendedAjaxAdapter.__super__.constructor.call(this,$element,options); |
| <html> | |
| <head> | |
| <title>DataTables + yadcf + Google Maps</title> | |
| <script type="text/javascript" charset="utf8" src="http://maps.google.com/maps/api/js?libraries=geometry&v=3.22&key={YOUR_API_KEY}"></script> | |
| <script type="text/javascript" charset="utf8" src="https://code.jquery.com/jquery-1.12.0.min.js"></script> | |
| <script type="text/javascript" charset="utf8" src="http://cdn.datatables.net/1.10.11/js/jquery.dataTables.js"></script> | |
| <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.11/js/dataTables.bootstrap.min.js"></script> | |
| <script type="text/javascript" charset="utf8" src="maplace.min.js"></script> | |
| <script type="text/javascript" charset="utf8" src="jquery.dataTables.yadcf.min.js"></script> | |
| <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> |
| #!/bin/bash | |
| TIMENAME=`date +%d.%m.%Y-%H.%M` | |
| for dbname in `echo show databases| mysql -u root`; do | |
| if [ $dbname != "Database" ] && [ $dbname != "mysql" ] && [ $dbname != "information_schema" ] && [ $dbname != "performance_schema" ]; then | |
| echo "Dump $dbname..." | |
| mysqldump -u root $dbname > "/var/www/mysql/$dbname.sql" | |
| fi | |
| done; |
| <?php | |
| function create_form_field($formelement, $label = "", $db_value = "", $length = 25) { | |
| $form_field = ($label != "") ? "<label for=\"".$formelement."\">".$label."</label>\n" : ""; | |
| $form_field .= " <input name=\"".$formelement."\" type=\"text\" size=\"".$length."\" value=\""; | |
| if (isset($_REQUEST[$formelement])) { | |
| $form_field .= $_REQUEST[$formelement]; | |
| } elseif (isset($db_value) && !isset($_REQUEST[$formelement])) { | |
| $form_field .= $db_value; | |
| } else { | |
| $form_field .= ""; |
| function hasParent( e, p ) { | |
| if ( !e ) return false; | |
| var el = e.target || e.srcElement || e || false; | |
| while ( el && el != p ) { | |
| el = el.parentNode || false; | |
| } | |
| return ( el!==false ); | |
| } |
| // first add raf shim | |
| // http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| window.requestAnimFrame = (function(){ | |
| return window.requestAnimationFrame || | |
| window.webkitRequestAnimationFrame || | |
| window.mozRequestAnimationFrame || | |
| function( callback ){ | |
| window.setTimeout(callback, 1000 / 60); | |
| }; | |
| })(); |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <?php require_once("const.php"); ?> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
| <title>Title Goes Here</title> | |
| <link rel="stylesheet" type="text/css" media="all" href="style.css"> | |
| <link rel="stylesheet" type="text/css" media="all" href="owl-carousel/owl.carousel.css"> | |
| <script src="jquery-1.11.2.js" type="text/javascript" charset="utf-8"></script> | |
| <script src="owl-carousel/owl.carousel.js" type="text/javascript" charset="utf-8"></script> |