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
<script> | |
(function () { | |
const insertButtons = (containerNode) => { | |
containerNode | |
.querySelectorAll(".fixr-event-item__footer") | |
.forEach((node) => { | |
if (node.querySelector("[data-external-button]")) return; | |
const item = node.firstChild.cloneNode(true); | |
item.style.marginRight = "auto"; |
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 express = require("express"); | |
const simpleOauth = require("simple-oauth2"); | |
const randomstring = require("randomstring"); | |
const oauth_provider = "github"; | |
function getScript(mess, content) { | |
return `<!doctype html><html><body><script> | |
(function() { | |
function receiveMessage(e) { |
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
import React, { useState, useEffect, useRef } from "react"; | |
import ReactDOM from "react-dom"; | |
const Portal = ({ children }) => { | |
const [attachedToDom, setAttachedToDom] = useState(false); | |
const el = useRef(null); | |
useEffect(() => { | |
el.current = document.createElement("div"); | |
document.body.appendChild(el.current); |
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
{ | |
"rules": { | |
"block-no-empty": true, | |
"color-no-invalid-hex": true, | |
"declaration-colon-space-after": "always", | |
"declaration-colon-space-before": "never", | |
"function-comma-space-after": "always", | |
"function-url-quotes": "always", | |
"media-feature-colon-space-after": "always", | |
"media-feature-colon-space-before": "never", |