Skip to content

Commit 8a7120e

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 567809e + a4e6392 commit 8a7120e

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

src/v2/guide/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Les moustaches ne peuvent pas être utilisées à l'intérieur des attributs HTM
5151
Cela fonctionne également pour les attributs booléens - l'attribut sera retiré si la condition est évaluée fausse :
5252

5353
``` html
54-
<button v-bind:disabled="someDynamicCondition">Button</button>
54+
<button v-bind:disabled="isButtonDisabled">Button</button>
5555
```
5656

5757
### Utilisation des expressions JavaScript

themes/vue/layout/partials/ad.ejs

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
<div id="ad">
22
<script>
33
(function () {
4-
var showConfPromo = Math.random() <= 0.33
5-
if (showConfPromo) {
6-
var c = document.createElement('div')
7-
c.id = 'conf-promo'
8-
c.innerHTML = '<a href="https://conf.vuejs.org" target="_blank">' +
9-
'<img src="/images/conf.png" alt="vueconf">' +
10-
'<span>The first VueConf EU is being held in Wrocław, Poland, June 21-23!</span>'
11-
'</a>'
12-
document.getElementById('ad').appendChild(c)
13-
} else {
14-
var s = document.createElement('script')
15-
s.setAttribute('async', '')
16-
s.src = '//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs'
17-
s.id = '_carbonads_js'
18-
document.getElementById('ad').appendChild(s)
19-
}
4+
var s = document.createElement('script')
5+
s.setAttribute('async', '')
6+
s.src = '//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs'
7+
s.id = '_carbonads_js'
8+
document.getElementById('ad').appendChild(s)
209
})()
2110
</script>
2211
</div>

0 commit comments

Comments
 (0)