Skip to content
Snippets Groups Projects
utils.js 270 B
Newer Older
  • Learn to ignore specific revisions
  • Bye's avatar
    Bye committed
    // random shit
    
    
    Bye's avatar
    Bye committed
    const params = new URLSearchParams(location.search);
    
    
    Bye's avatar
    Bye committed
    export const pi = Math.PI;
    
    Bye's avatar
    Bye committed
    export const getParameter = key => key ? params.get(key) : 0;
    
    Bye's avatar
    Bye committed
    export const hash = _ => window.location.hash;
    export const setHash = string => window.location.hash = string;