$ git clone https://github.com/braziljs/power-polygon.git
$ cd power-polygon $ npm install # You will be asked to create a token #(your token is a keyword you will use later) $ sudo node run.js # this starts the server, listening to port 8081PRONTO: já pode sair usando!
PPW.addAction( function (){ alert(0); } );
But you can have a does, and undo functions for your action:
Mas você pode usar does, e undo para suas actions:
PPW.addAction({
does: function(){ alert("doing something"); },
undo: function(){ alert("undo that!"); },
});
PPW.addAction({
timing: auto,
does: function(){
PPW.animate("#slide-animations-eg",
"pulse",
{
count: 'infinite',
duration: '500ms',
delay: '2s',
onstart: function(){ console.log(0); },
onend: function(){ console.log(1); }
}
);
}
});
<span class="LANG-EN">Text in English.</span> <span class="LANG-PT">Texto em Português.</span>Go to the top-left corner of the screen, open the settings and change the language selectbox. Vá para o canto superior esquerdo da janela, selecione o icone "settings" na barra de opções, e altere a linguagem
PPW.init({
profile: 'defaultProfile', // you name it
// other settings you may want to use
slides: [
{ id: 'slide-1' }, // default profile
{ id: 'slide-2', profile: 'other' },
{ id: 'slide-3' }, // default profile
]
});