mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Modal uses Tap now
This commit is contained in:
@ -35,20 +35,22 @@
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="../dist/ionic.js"></script>
|
||||
<script>
|
||||
var open = document.getElementById('modal-opener');
|
||||
open.addEventListener('click', function(e) {
|
||||
|
||||
ionic.on('tap', function(e) {
|
||||
var modal = document.getElementById('modal');
|
||||
modal.classList.add('active');
|
||||
return false;
|
||||
});
|
||||
}, open);
|
||||
|
||||
var closer = document.getElementById('modal-closer');
|
||||
closer.addEventListener('click', function(e) {
|
||||
ionic.on('tap', function(e) {
|
||||
var modal = document.getElementById('modal');
|
||||
modal.classList.remove('active');
|
||||
return false;
|
||||
});
|
||||
}, closer);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user