Fixed view.php
This commit is contained in:
parent
65f4980bb8
commit
7a970a55ed
BIN
dist/view.js
vendored
BIN
dist/view.js
vendored
Binary file not shown.
@ -12,19 +12,19 @@ var header = $('header'),
|
||||
$(document).ready(function(){
|
||||
|
||||
/* Event Name */
|
||||
if ('ontouchend' in document.documentElement) event_name = 'touchend';
|
||||
else event_name = 'click';
|
||||
if ('ontouchend' in document.documentElement) eventName = 'touchend';
|
||||
else eventName = 'click';
|
||||
|
||||
/* Window */
|
||||
$(window).keydown(key);
|
||||
|
||||
/* Infobox */
|
||||
$(document) .on(event_name, '#infobox .header a', hideInfobox);
|
||||
$(document) .on(event_name, '#infobox_overlay', hideInfobox);
|
||||
$('#button_info') .on(event_name, showInfobox);
|
||||
infobox.find('.header .close').on(eventName, hideInfobox);
|
||||
$(document) .on(eventName, '#infobox_overlay', hideInfobox);
|
||||
$('#button_info') .on(eventName, showInfobox);
|
||||
|
||||
/* Direct Link */
|
||||
$('#button_direct').on(event_name, function() {
|
||||
$('#button_direct').on(eventName, function() {
|
||||
|
||||
var link = $('#imageview #image').css('background-image').replace(/"/g,'').replace(/url\(|\)$/ig, '');
|
||||
window.open(link, '_newtab');
|
||||
@ -123,7 +123,7 @@ loadPhotoInfo = function(photoID) {
|
||||
.addClass('fadeIn')
|
||||
.show();
|
||||
|
||||
infobox.html(build.infoboxPhoto(data, true)).show();
|
||||
infobox.find('.wrapper').html(build.infoboxPhoto(data, true));
|
||||
|
||||
}, error: ajaxError });
|
||||
|
||||
|
20
view.php
20
view.php
@ -48,9 +48,12 @@
|
||||
<!-- Header -->
|
||||
<header class="view">
|
||||
|
||||
<!-- Buttons -->
|
||||
<div class="tools" id="button_direct" title="Direct Link"><a class="icon-link"></a></div>
|
||||
<div class="tools" id="button_info" title="Show Info"><a class="icon-info-sign"></a></div>
|
||||
<a class="button button--right" id="button_info" title="About Photo">
|
||||
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#info"></use></svg>
|
||||
</a>
|
||||
<a class="button button--right" id="button_direct" title="Direct Link">
|
||||
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#link-intact"></use></svg>
|
||||
</a>
|
||||
|
||||
<a id="title" class="view"></a>
|
||||
|
||||
@ -60,7 +63,16 @@
|
||||
<div id="imageview" class="view"></div>
|
||||
|
||||
<!-- Infobox -->
|
||||
<div id="infobox"></div>
|
||||
<div id="infobox">
|
||||
<div class='header'>
|
||||
<h1>About</h1>
|
||||
<a class='close' title='Close About'>
|
||||
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#circle-x"></use></svg>
|
||||
</a>
|
||||
</div>
|
||||
<div class='wrapper'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- JS -->
|
||||
<script type="text/javascript" src="dist/view.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user