-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.js
More file actions
19 lines (19 loc) · 701 Bytes
/
app.js
File metadata and controls
19 lines (19 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var app = new Vue({
el: '#app',
data: () => {
return {
phrase: '',
deco: '_.~"~._.~"~._.~"~._.~"~._'
}
},
created() {
const s = sessionStorage.getItem('p');
this.phrase = s ? s : 'La mecánica cuántica es la rama de la física que estudia la naturaleza a escalas espaciales pequeñas, los sistemas atómicos y subatómicos y sus interacciones con la radiación electromagnética, en términos de cantidades observables';
},
computed: {
xoni: function() {
sessionStorage.setItem('p', this.phrase);
return `${this.deco}<br /> ${xoniza(this.phrase)} <br />${this.deco}`;
}
}
});