Skip to content

Commit

Permalink
use absolute paths with protocol
Browse files Browse the repository at this point in the history
- prevent Mixed Content in #91
  • Loading branch information
niklasravnsborg committed Nov 1, 2016
1 parent 5ec5c02 commit 698570d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _includes/work.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h3 id="work">Work</h3>
<div class="thumb-container">
{% for project in site.data.settings.projects %}
<label for="{{ project.folder }}">
<div class="thumb-unit" data-folder="{{ project.folder }}">
<div class="thumb-unit" data-url="{{ site.github.url }}/work/{{ project.folder }}">
<img src="{{ site.github.url }}/assets/img/work/{{project.folder}}/thumb.jpg" alt="{{ project.name }}" />
</div>
<div class="thumb-overlay">
Expand Down
5 changes: 2 additions & 3 deletions assets/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ function workLoad() {
$('.thumb-container label').click(function() {
var $this = $(this),
newTitle = $this.find('strong').text(),
newFolder = $this.find('.thumb-unit').data('folder'),
spinner = '<div class="loader">Loading...</div>',
newHTML = 'work/'+ newFolder;
url = window.location.origin + $this.find('.thumb-unit').data('url');

$('.project-load').html(spinner).load(newHTML);
$('.project-load').html(spinner).load(url);
$('.project-title').text(newTitle);
});

Expand Down

0 comments on commit 698570d

Please sign in to comment.