Skip to content

Instantly share code, notes, and snippets.

View IntranetFactory's full-sized avatar

Martin Amm IntranetFactory

View GitHub Profile
@IntranetFactory
IntranetFactory / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../at-carbon-container/at-carbon-container.html">
<link rel="import" href="../at-chart-core/c3-import.html">
<link rel="import" href="../at-chart-core/at-chart-core.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: relative;
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../at-carbon-container/at-carbon-container.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: relative;
@IntranetFactory
IntranetFactory / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../at-core-searchbox/at-core-searchbox.html">
<link rel="import" href="../at-core-activity/at-core-activity.html">
<link rel="import" href="../at-core-list/at-core-list.html">
<link rel="import" href="../at-chart-core/c3-import.html">
<link rel="import" href="../at-chart-core/at-chart-core.html">
<polymer-element name="toaster-policies" attributes="searchTerm">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
@IntranetFactory
IntranetFactory / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../at-form-lookup/at-form-lookup.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: relative;
width: 100%;
height: 100%;
@IntranetFactory
IntranetFactory / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../at-form-lookup/at-form-lookup.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: relative;
width: 100%;
height: 100%;
@IntranetFactory
IntranetFactory / designer.html
Last active August 29, 2015 14:15
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-category.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
(function(){
var attachEvent = document.attachEvent;
var isIE = navigator.userAgent.match(/Trident/);
console.log(isIE);
var requestFrame = (function(){
var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ||
function(fn){ return window.setTimeout(fn, 20); };
return function(fn){ return raf(fn); };
})();
@IntranetFactory
IntranetFactory / logintest.js
Created November 11, 2019 20:30
login to my.digitalassistant.app test tenant
const puppeteer = require('puppeteer');
const username = 'test';
const password = 'bratwurst';
(async () => {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await page.goto('https://my.digitalassistant.app/Users/Account/Login', {waitUntil: 'networkidle2'});
const usernameInput = await page.evaluateHandle(`document.querySelector("#ue").shadowRoot.querySelector("#input-1 > input")`);
const passwordInput = await page.evaluateHandle(`document.querySelector("#visibleForm > form > paper-input:nth-child(2)").shadowRoot.querySelector("#input-2 > input[type=password]")`);