Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master prueba #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion public/js/config.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
var host = 'http://localhost:3000/';
// var host = 'http://localhost:3000/';
var host = 'https://diapositivas.carlosvivas.dev/';
55 changes: 43 additions & 12 deletions views/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,60 @@
<title>Revealer - Reveal.js multiplexer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="components/reveal.js/css/reveal.min.css">
<link rel="stylesheet" href="components/reveal.js/css/theme/default.css" id="theme">
<link rel="stylesheet" href="components/reveal.js/css/theme/white.css" id="theme">
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section >
<img src="https://i.pinimg.com/564x/67/c2/02/67c2021afe3dc8b0390f83c7a5c6d25b.jpg">
<h1>El uso de la electricidad en la medicina</h1>
</section>
<section>
<img src="https://i0.wp.com/www.labrujulaverde.com/wp-content/uploads/2022/03/Torpedo_marmorata_-_Fear_me-2.jpg?resize=768%2C488&ssl=1">
<h1>Scribonius Largu</h1>
</section>
<section data-background="https://i.pinimg.com/736x/65/8f/b2/658fb28bc576442bc9b92f940626b13c--gout-the-le.jpg"></section>
<section>
<img src="https://nationalmaglab.org/media/i40jqieb/luigi-galvani.png">
<h1>Luigi Galvani (1780)</h1>
</section>
<section>
<img src="https://i.pinimg.com/564x/55/73/23/557323fbb7161c2b379c3884bd573632.jpg">
</section>
<section>
<img src="https://i.pinimg.com/564x/0c/4f/ef/0c4fef8a573e3539f77d8c764038aa80.jpg">
<h2>"Electricidad animal"</h2>
</section>
<section>
<h1>Revealer</h1>
<h3>Reveal.js multiplexer</h3>
<img src="https://i.postimg.cc/wBzTfpYZ/Whats-App-Image-2023-05-15-at-8-58-27-PM.jpg">

</section>
<section>
<h1>Slide 1</h1>
<h3>Sample slide 1</h3>
<img src="https://i.postimg.cc/WbpzjjDv/Grabacio-n-de-pantalla-2023-05-15-a-la-s-8-38-02-p-m-3.gif">
</section>

<section>
<h1>Slide 2</h1>
<h3>Sample slide 2</h3>
<p class="fragment grow">Sample fragment 1</p>
<p class="fragment shrink">Sample fragment 2</p>
<p class="fragment roll-in">Sample fragment 3</p>
<img src="https://i0.wp.com/www.fisiosite.com/blog/wp-content/uploads/Respuestas-fisiolo%CC%81gicas760.jpg?resize=760%2C750&ssl=1">
</section>
<section data-background="https://cdn.shopify.com/s/files/1/0146/9569/4436/articles/Contraindicaciones_TENS_1024x1024.png?v=1571066174">
<!-- <img src="https://upload.wikimedia.org/wikipedia/commons/8/8f/Sir_Humphry_Davy%2C_Bt_by_Thomas_Phillips.jpg" style="width: 48%;">-->
<h1 style="color: white; font-size: 120px;">
Contraindicaciones</h1>
</section>
<section data-background="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAf_Dvi1E0rN5naNXZfMCpAo7oK52DaE5xjQ&usqp=CAU">
<!-- <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAf_Dvi1E0rN5naNXZfMCpAo7oK52DaE5xjQ&usqp=CAU">-->
<h1 style=" font-size: 120px; color: white;">
Beneficios</h1>
</section>
<section data-background="https://http2.mlstatic.com/D_NQ_NP_2X_911662-MCO31060449905_062019-F.webp">
</section>
</div>
</div>
</div>
<script src="components/reveal.js/js/reveal.min.js"></script>
<!-- Socket.io client-->
<script src="/socket.io/socket.io.js"></script>
Expand All @@ -38,13 +69,13 @@ <h3>Sample slide 2</h3>
Reveal.initialize({
history: true
});

var socket = io.connect(host);

socket.on('slidechanged', function (data) {
Reveal.slide(data.indexh, data.indexv, data.indexf);
});

})();
</script>
</body>
Expand Down
48 changes: 38 additions & 10 deletions views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,54 @@
<title>Revealer - Reveal.js multiplexer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="components/reveal.js/css/reveal.min.css">
<link rel="stylesheet" href="components/reveal.js/css/theme/default.css" id="theme">
<link rel="stylesheet" href="components/reveal.js/css/theme/white.css" id="theme">
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section >
<img src="https://i.pinimg.com/564x/67/c2/02/67c2021afe3dc8b0390f83c7a5c6d25b.jpg">
<h1>El uso de la electricidad en la medicina</h1>
</section>
<section>
<img src="https://i0.wp.com/www.labrujulaverde.com/wp-content/uploads/2022/03/Torpedo_marmorata_-_Fear_me-2.jpg?resize=768%2C488&ssl=1">
<h1>Scribonius Largu</h1>
</section>
<section data-background="https://i.pinimg.com/736x/65/8f/b2/658fb28bc576442bc9b92f940626b13c--gout-the-le.jpg"></section>
<section>
<img src="https://nationalmaglab.org/media/i40jqieb/luigi-galvani.png">
<h1>Luigi Galvani (1780)</h1>
</section>
<section>
<img src="https://i.pinimg.com/564x/55/73/23/557323fbb7161c2b379c3884bd573632.jpg">
</section>
<section>
<img src="https://i.pinimg.com/564x/0c/4f/ef/0c4fef8a573e3539f77d8c764038aa80.jpg">
<h2>"Electricidad animal"</h2>
</section>
<section>
<h1>Revealer</h1>
<h3>Reveal.js multiplexer</h3>
<img src="https://i.postimg.cc/wBzTfpYZ/Whats-App-Image-2023-05-15-at-8-58-27-PM.jpg">

</section>
<section>
<h1>Slide 1</h1>
<h3>Sample slide 1</h3>
<img src="https://i.postimg.cc/WbpzjjDv/Grabacio-n-de-pantalla-2023-05-15-a-la-s-8-38-02-p-m-3.gif">
</section>

<section>
<h1>Slide 2</h1>
<h3>Sample slide 2</h3>
<p class="fragment grow">Sample fragment 1</p>
<p class="fragment shrink">Sample fragment 2</p>
<p class="fragment roll-in">Sample fragment 3</p>
<img src="https://i0.wp.com/www.fisiosite.com/blog/wp-content/uploads/Respuestas-fisiolo%CC%81gicas760.jpg?resize=760%2C750&ssl=1">
</section>
<section data-background="https://cdn.shopify.com/s/files/1/0146/9569/4436/articles/Contraindicaciones_TENS_1024x1024.png?v=1571066174">
<!-- <img src="https://upload.wikimedia.org/wikipedia/commons/8/8f/Sir_Humphry_Davy%2C_Bt_by_Thomas_Phillips.jpg" style="width: 48%;">-->
<h1 style="color: white; font-size: 120px;">
Contraindicaciones</h1>
</section>
<section data-background="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAf_Dvi1E0rN5naNXZfMCpAo7oK52DaE5xjQ&usqp=CAU">
<!-- <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAf_Dvi1E0rN5naNXZfMCpAo7oK52DaE5xjQ&usqp=CAU">-->
<h1 style=" font-size: 120px; color: white;">
Beneficios</h1>
</section>
<section data-background="https://http2.mlstatic.com/D_NQ_NP_2X_911662-MCO31060449905_062019-F.webp">
</section>
</div>
</div>
Expand Down