Last active
January 12, 2018 19:48
-
-
Save parzibyte/13506602aafdb23a2454ef8740d078c3 to your computer and use it in GitHub Desktop.
Introducción a PouchDB: incluir script y comprobar si lo hemos hecho correctamente
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://cdn.jsdelivr.net/npm/pouchdb@6.4.1/dist/pouchdb.min.js"></script> | |
</head> | |
<body> | |
<h1 id="resultado"></h1> | |
<script> | |
var elemento = document.querySelector("#resultado"); | |
if ("undefined" !== typeof PouchDB) elemento.innerHTML = "Correcto"; | |
else elemento.innerHTML = "Algo salió mal"; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment