Skip to content

Instantly share code, notes, and snippets.

View ivandoroshenko's full-sized avatar

Ivan Doroshenko ivandoroshenko

View GitHub Profile
@ivandoroshenko
ivandoroshenko / js prepend() IE10 polyfill
Created January 22, 2020 16:47
js prepend IE polyfill
(function (arr) {
arr.forEach(function (item) {
if (item.hasOwnProperty('prepend')) {
return;
}
Object.defineProperty(item, 'prepend', {
configurable: true,
enumerable: true,
writable: true,
value: function prepend() {
@ivandoroshenko
ivandoroshenko / ChildNode.append() polyfill
Last active January 22, 2020 16:50
ChildNode.append() polyfill
/**
* ChildNode.append() polyfill
* https://gomakethings.com/adding-an-element-to-the-end-of-a-set-of-elements-with-vanilla-javascript/
* @author Chris Ferdinandi
* @license MIT
*/
(function (elem) {
// Check if element is a node
// https://github.com/Financial-Times/polyfill-service
#!/bin/bash
# This will remove Apache
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin
sudo apt remove apache2.*
sudo apt-get autoremove
whereis apache2
sudo rm -rf /etc/apache2
"use strict";
function addReviewsBanner() {
const productInfoWrapper = document.querySelector('.product__info-wrapper');
if (document.querySelector('.reviews__banner')) return;
if (productInfoWrapper) {
const imageUrl = 'https://i.postimg.cc/sXhrM4dm/assesment-image.png';
const reviewsTitle = 'Mehr als 100.000 zufriedene Kunden';