speechSynthesis.onvoiceschanged = function() {
var msg = new SpeechSynthesisUtterance();
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0];
msg.text = Object.keys(window).join(' ');
this.speak(msg);
};
speechSynthesis.onvoiceschanged = function() {
var msg = new SpeechSynthesisUtterance();
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0];
msg.text = Object.keys(window).join(' ');
this.speak(msg);
};
Launch your terminal then follow the following steps
First grab the deb package using wget wget http://download4.operacdn.com/ftp/pub/opera/desktop/40.0.2308.62/linux/opera-stable_40.0.2308.62_i386.deb
Next install apt-transport-https and libcurl3 using apt-get
sudo apt install apt-transport-https libcurl3
| @echo off | |
| cd /d %~dp0 | |
| cd /d node_modules\sqlite3 | |
| call npm install | |
| call npm run prepublish | |
| call node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-win32-ia32 | |
| call node-gyp rebuild --target=0.36.4 --arch=ia32 --target_platform=win32 --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-win32-ia32 | |
| cd /d %~dp0 | |
| exit /B 0 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| html { | |
| background: #333333; | |
| } | |
| body { |
| var shell = require('electron').shell; | |
| document.addEventListener('DOMContentLoaded',function(){ | |
| var el = document.querySelector('#mylink'); | |
| el.addEventListener('click',function(event){ | |
| event.preventDefault(); | |
| shell.openExternal(this.href); | |
| }); | |
| }) |
| /** | |
| * Be sure to include library scripts in this order. Can be placed either | |
| * in the header or footer. | |
| */ | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-infinitescroll/2.0b2.120519/jquery.infinitescroll.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/masonry/3.1.2/masonry.pkgd.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.0.4/jquery.imagesloaded.min.js"></script> |
| #https://gorails.com/setup/ubuntu/14.04 | |
| sudo apt-get update | |
| sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
| sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
| curl -L https://get.rvm.io | bash -s stable | |
| source ~/.rvm/scripts/rvm | |
| echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
| rvm install 2.1.2 | |
| rvm use 2.1.2 --default |
Prerequisites:
Software components used:
| // change to your database | |
| var db = window.openDatabase("YourApp", "1.0.0", "DatabaseName", 5*1024); // 5*1024 is size in bytes | |
| // file fail function | |
| function failFile(error) { | |
| console.log("PhoneGap Plugin: FileSystem: Message: file does not exists, isn't writeable or isn't readable. Error code: " + error.code); | |
| alert('No backup is found, or backup is corrupt.'); | |
| } | |
| // start backup (trigger this function with a button or a page load or something) |