text: // classes:
  class Question {
      constructor(index, title, url, answer) {
          this.index = index
          this.title = title
          this.url = url
          this.answer = answer
          this.place = null
      }
  }
  
  class Place {
      constructor(url, code) {
          this.url = url
          this.code = code
      }
  }
  
  // decoded & encode mehthods:
  const hebrew = 'אבגדהוזחטיךכלםמןנסעףפץצקרשת'
  const all = `0123456789 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~` + hebrew
  
  const decodeString = (string, decode_key) => {
      let result = ""
      
      for (let i = 0; i < string.length; i++) {
          let index = all.indexOf(string[i]) - decode_key;
          if (index < 0)
              index += all.length
          result += all[index]
      }
  
      return result
  }
  
  const encodeString = (string, encode_key) => {
      let result = ""
      
      for (let i = 0; i < string.length; i++) {
          let index = (all.indexOf(string[i]) + encode_key) % all.length; 
          result += all[index]
      }
  
      return result
  }
  
  // methods
  const loadNextPage = (pageName) => {
      let href = window.location.href.split('/')
      href.pop()
      href.push(pageName)
      window.location.href = href.join('/')
  }
  
  const random = (min, max) => Math.floor(Math.random() * max) + min
  
  // TODO: temp
  function deleteAll() {
      deleteDatabase()
      localStorage.clear()
  }