This file contains hidden or 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 | |
$input_text = isset($_GET['text']) ? $_GET['text'] : ''; | |
$font = './fonts/Cairo-Regular.ttf'; | |
$bg_image_path = 'photo.png'; | |
$font = realpath($font); | |
require('./I18N/Arabic.php'); | |
$Arabic = new I18N_Arabic('Glyphs'); | |
$text = $Arabic->utf8Glyphs(htmlspecialchars($input_text)); |
This file contains hidden or 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
const fetchJSONP = ((callback, callbackName) => { | |
const map = new WeakMap(); | |
window[callbackName] = json => { | |
const script = document.currentScript; | |
const fn = map.get(script); | |
if (fn) { | |
map.delete(script); | |
fn(json); | |
script.remove(); | |
} |