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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize & lower the weight of all images for mobile & slower connections #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added img/Hubble Cropped_1000.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Southern_nebula_webb_1000.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Southern_ring_nebula_Hubble_Rotated_1000.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Stephan's_Quintet_Hubble_Rotated_1000.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Stephans_Quintent_Webb_1000.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Webb Deep Field Cropped_1000.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 19 additions & 19 deletions index.html
Expand Up @@ -10,52 +10,52 @@
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->

<title>Webb Compare</title>
</head>

<body>
<div class="main">
<h1> <a href="https://en.wikipedia.org/wiki/SMACS_J0723.3-7327">Galaxy Cluster SMACS 0723</a></h1>
<figure class="cd-image-container">
<img src="img/Webb Deep Field Cropped.png" alt="Webb Image">
<img src="img/Webb Deep Field Cropped_1000.png" alt="Webb Image">
<span class="cd-image-label" data-type="original">Webb</span>

<div class="cd-resize-img">
<!-- the resizable image on top -->
<img src="img/Hubble Cropped.png" alt="Hubble Image">
<img src="img/Hubble Cropped_1000.png" alt="Hubble Image">
<span class="cd-image-label" data-type="modified">Hubble</span>
</div>

<span class="cd-handle"></span>
</figure> <!-- cd-image-container -->

<h1> <a href="https://en.wikipedia.org/wiki/NGC_3132">Southern Ring Nebula</a></h1>

<figure class="cd-image-container">
<img src="img/Southern_nebula_webb.png" alt="Webb Image">
<img src="img/Southern_nebula_webb_1000.png" alt="Webb Image">
<span class="cd-image-label" data-type="original">Webb</span>

<div class="cd-resize-img">
<!-- the resizable image on top -->
<img src="img/Southern_ring_nebula_Hubble_Rotated.png" alt="Hubble Image">
<img src="img/Southern_ring_nebula_Hubble_Rotated_1000.png" alt="Hubble Image">
<span class="cd-image-label" data-type="modified">Hubble</span>
</div>

<span class="cd-handle"></span>
</figure> <!-- cd-image-container -->

<h1> <a href="https://en.wikipedia.org/wiki/Stephan%27s_Quintet">Stephan's Quintet</a></h1>
<figure class="cd-image-container">
<img src="img/Stephans_Quintent_Webb.jpg" alt="Webb Image">
<img src="img/Stephans_Quintent_Webb_1000.jpg" alt="Webb Image">
<span class="cd-image-label" data-type="original">Webb</span>

<div class="cd-resize-img">
<!-- the resizable image on top -->
<img src="img/Stephan's_Quintet_Hubble_Rotated.jpg" alt="Hubble Image">
<img src="img/Stephan's_Quintet_Hubble_Rotated_1000.jpg" alt="Hubble Image">
<span class="cd-image-label" data-type="modified">Hubble</span>
</div>

<span class="cd-handle"></span>
</figure> <!-- cd-image-container -->

Expand All @@ -64,12 +64,12 @@ <h1> <a href="https://en.wikipedia.org/wiki/Carina_Nebula">Carina Nebula</a></h1
<img src="img/Carina_webb_cropped.jpg" alt="Webb Image">
<!-- <img src="img/Stephan's_Quintet_Hubble_Rotated.jpg" alt="Hubble Image">-->
<span class="cd-image-label" data-type="original">Webb</span>

<div class="cd-resize-img">
<img src="img/Carina_Hubble_rotated_cropped.jpg" alt="Hubble Image">
<span class="cd-image-label" data-type="modified">Hubble</span>
</div>

<span class="cd-handle"></span>
</figure> <!-- cd-image-container -->

Expand All @@ -78,11 +78,11 @@ <h1> <a href="https://en.wikipedia.org/wiki/Carina_Nebula">Carina Nebula</a></h1
<i class="fa fa-github"></i></a>

</div>

</div>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery.mobile.custom.min.js"></script> <!-- Resource jQuery -->
<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>

</html>