The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: elminsondeoleo | |
| * Date: 2019-12-23 | |
| * Time: 22:13 | |
| */ | |
| /** |
| sudo apt install ca-certificates apt-transport-https | |
| wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - | |
| echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list | |
| sudo apt update | |
| sudo apt install php7.3 php7.3-cli php7.3-common php7.3-curl php7.3-mbstring php7.3-mysql php7.3-xml php7.3-gd | |
| sudo apt-get purge php7.0-common | |
| sudo apt install phpmyadmin* | |
| sudo a2enmod php7.3 | |
| sudo /etc/init.d/apache2 restart |
| <?php | |
| class HashTable { | |
| private $_array = array(); | |
| private $_size = 10000; | |
| public function __construct($size=0) { | |
| $size = (int)$size; | |
| if ($size > 0) { |
I have following object:
var cities={10:'Tashkent', 14:'Karakalpakiya', 16:'Andijan'};I want sort it by city names, so after sort it should be:
var cities={16:'Andijan', 14:'Karakalpakiya', 10:'Tashkent'};But I can't sort object properties, instead can convert object into array, then sort items.
| %icon { | |
| font-family: $icon-font; //set as a variable - it's whatever your icon font name is | |
| speak: none; | |
| font-weight: normal; | |
| font-variant: normal; | |
| text-transform: none; | |
| line-height: 1; | |
| -webkit-font-smoothing: antialiased; | |
| } |
| // Get all users | |
| var url = "http://localhost:8080/api/v1/users"; | |
| var xhr = new XMLHttpRequest() | |
| xhr.open('GET', url, true) | |
| xhr.onload = function () { | |
| var users = JSON.parse(xhr.responseText); | |
| if (xhr.readyState == 4 && xhr.status == "200") { | |
| console.table(users); | |
| } else { | |
| console.error(users); |
| 4 | |
| jfjr959493ajsks999s9_A.txt | |
| sieeke4444abcksl4krk_A.cpp | |
| a8b95b8k4ra9f4ka92kf_A.cs | |
| A.java |