Skip to content

Instantly share code, notes, and snippets.

View thangman22's full-sized avatar

Warat Wongmaneekit thangman22

View GitHub Profile
<link rel="manifest" href="/manifest.json">
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(["init", {
appId: "YOUR_APP_ID",
autoRegister: false,
notifyButton: {
enable: true /* Set to false to hide */
}
{
"name": "Thangman22",
"short_name": "Thangman22",
"start_url": "/",
"display": "standalone",
"gcm_sender_id": "343xxxxx"
}
7.Polymer render should be complete (29135ms)
6.jQuery render should be complete (17281ms)
5.Riotjs render should be complete (12131ms)
4.Angular 1 render should be complete (7993ms)
3.Angular 2 render should be complete (7602ms)
2.React render should be complete (5602ms)
****1.VueJS 1 render should be complete (3895ms)
---------------------------------------------------
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title>Sample document</title>
<link rel="canonical" href="./regular-html-version.html">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-custom>
h1 {color: red}
</style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Thangman22 auth</title>
<script src="https://www.gstatic.com/firebasejs/3.4.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "xxxxx",
<!DOCTYPE html>
<html>
<head>
<title></title>
<script>
function onButtonClick() {
let filters = [];
filters.push({services: ['battery_service']});
<!DOCTYPE html>
<html>
<head>
<title></title>
<script>
function onButtonClick() {
let filters = [];
filters.push({services: ['battery_service']});
navigator.credentials.get({
password: true
}).then(function(cred) {
console.log(cred)
if(cred){
$("#status").append("<li>Login Credential Found</li>")
fetch('login.php', {
method: 'POST',
credentials: cred
}).then(function(res) {
if ('mediaSession' in navigator) {
navigator.mediaSession.metadata = new MediaMetadata({
title: 'Big buck bunny',
artist: 'Sacha Goedegebure',
album: 'Big buck bunny',
artwork: [
{ src: 'bbb-splash.png', sizes: '512x512', type: 'image/png' },
]
});
import Vue from 'vue'
import ProfileImage from 'src/components/ContentCards/ProfileImage'
describe('ContentCards/ProfileImage.vue Should render correct format', () => {
it('Profile picture should convert to https', () => {
})
it('Profile picture should replace when empty', () => {