Commit 2d7ee0b5 by Danyi Bence

google font linked, js interface update

parent b104bdf5
...@@ -4,18 +4,19 @@ ...@@ -4,18 +4,19 @@
<html lang="{{lang}}"> <html lang="{{lang}}">
<head> <head>
<title>{% block title %}IK Cloud{% endblock %}</title> <title>{% block title %}IK Cloud{% endblock %}</title>
<link href='http://fonts.googleapis.com/css?family=Metrophobic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/style.css" /> <link rel="stylesheet" href="/static/style.css" />
<link rel="icon" type="image/png" href="/static/favicon.png" /> <link rel="icon" type="image/png" href="/static/favicon.png" />
<link rel="icon" type="image/png" href="one/static/favicon.png"> <link rel="icon" type="image/png" href="one/static/favicon.png">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="/static/jquery.min.js"></script> <script src="/static/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$('.wm .summary').each(function(){ $('.wm .summary').each(function(){
this.originalHeight=parseInt($(this).next('.details').css('height')); this.originalHeight=parseInt($(this).next('.details').css('height'));
}) })
$('.wm .summary').click(function(){ var toggleDetails=function(){
if($(this).next('.details').is(':hidden')){ if($(this).next('.details').is(':hidden')){
$(this).next('.details') $(this).next('.details')
.css('height',0) .css('height',0)
.css('padding','0px 5px') .css('padding','0px 5px')
...@@ -31,7 +32,8 @@ $(function(){ ...@@ -31,7 +32,8 @@ $(function(){
$(that).next('.details').hide(); $(that).next('.details').hide();
}); });
} }
}) }
$('.wm .summary').click(toggleDetails);
$('#load-more-files').click(function(){ $('#load-more-files').click(function(){
$('.actions', this).show(); $('.actions', this).show();
var that=this; var that=this;
...@@ -44,6 +46,10 @@ $(function(){ ...@@ -44,6 +46,10 @@ $(function(){
$('#new-wm-button').click(function(){ $('#new-wm-button').click(function(){
$('#modal').show(); $('#modal').show();
$('#modal-container').html($('#new-wm').html()); $('#modal-container').html($('#new-wm').html());
$('#modal-container .wm .summary').each(function(){
this.originalHeight=parseInt($(this).next('.details').css('height'));
})
$('#modal-container .wm .summary').click(toggleDetails);
}); });
$('#shadow').click(function(){ $('#shadow').click(function(){
$('#modal').hide(); $('#modal').hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment