This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="indicator-container"> | |
<span | |
[class]="'indicator '+(slideIndicator.currSlide == 0 ? 'curr-indicator' : '')" | |
class="indicator curr-indicator" | |
on="tap:slideIndicator.goToSlide(index=0),AMP.setState({slideIndicator: {currSlide:0}})"> | |
</span> | |
<span | |
[class]="'indicator '+(slideIndicator.currSlide == 1 ? 'curr-indicator' : ' ')" | |
on="tap:slideIndicator.goToSlide(index=1),AMP.setState({slideIndicator: {currSlide: 1}})"> | |
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="indicator-container"> | |
<span | |
[class]="'indicator '+(slideIndicator.currSlide == 0 ? 'curr-indicator' : '')" | |
class="indicator curr-indicator" | |
on="tap:slideIndicator.goToSlide(index=0)"> | |
</span> | |
<span | |
[class]="'indicator '+(slideIndicator.currSlide == 1 ? 'curr-indicator' : ' ')" | |
on="tap:slideIndicator.goToSlide(index=1)"> | |
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="indicator-container"> | |
<span | |
[class]="'indicator '+(slideIndicator.currSlide == 0 ? 'curr-indicator' : '')" | |
class="indicator curr-indicator"> | |
</span> | |
<span [class]="'indicator '+(slideIndicator.currSlide == 1 ? 'curr-indicator' : '')"></span> | |
<span [class]="'indicator '+(slideIndicator.currSlide == 2 ? 'curr-indicator' : '')"></span> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<amp-carousel | |
class="carousel" | |
layout="fixed-height" | |
height=400 | |
type="slides" | |
loop | |
on="slideChange:AMP.setState({slideIndicator: {currSlide: event.index}})"> | |
<amp-img src="/img/foo.jpg" width="450" height="400"></amp-img> | |
<amp-img src="/img/bar.jpg" width="450" height="400"></amp-img> | |
<amp-img src="/img/baz.jpg" width="450" height="400"></amp-img> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"slideIndicator":{ | |
"currSlide": event.index | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<amp-carousel | |
class="carousel" | |
layout="fixed-height" | |
height=400 | |
type="slides" | |
loop> | |
<amp-img src="/img/foo.jpg" width="450" height="400"></amp-img> | |
<amp-img src="/img/bar.jpg" width="450" height="400"></amp-img> | |
<amp-img src="/img/baz.jpg" width="450" height="400"></amp-img> | |
</amp-carousel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"slideIndicator":{ | |
"currSlide": 0 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<amp-state id="slideIndicator"> | |
<script type="application/json"> | |
{ | |
"currSlide": 0 | |
} | |
</script> | |
</amp-state> |