-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (61 loc) · 1.94 KB
/
index.html
File metadata and controls
62 lines (61 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<html>
<head>
<script src="jquery-1.9.1.js"></script>
<style>
body{padding:0;margin:0;overflow:hidden;}
#cclogin{
width:100%;
overflow:auto;
}#form-post-iframe{
display:none;
}
#prev-header{
font-family:sans-serif;
letter-spacing:-.09em;
font-variant:small-caps;
font-size:43px;
padding:4px 4px 4px 20px;
color:rgb(179,179,179);
width:100%;
vertical-align: middle;
border-bottom: 1px solid white;
}
.header-text{
font-family:sans-serif;
font-variant:small-caps;
font-weight:900;
font-size:44px;
margin-left:20px;
color:rgb(125,153,60);
}
</style>
<script>
var resizeQueue = new $.Deferred(); //new is optional but it sure is descriptive
resizeQueue.resolve();
var calcHeight = function() {
var header = $('#prev-header').height() + 11;
$("#cclogin").css('height',$(window).height() - header);
};
$(function() {
var $win = $(window);
$("#form-post-iframe").submit();
calcHeight();
});
/* Ugly but it seems to be the only thing that gets it working flawlessly with the sticky footer */
$(window).resize(function() {for(var i=0;i<20;i++){resizeQueue.done(calcHeight);}});
$(window).load(function() {for(var i=0;i<20;i++){resizeQueue.done(calcHeight);}});
</script>
</head>
<body>
<div id="prev-header">
<img class="cc-cog" src="http://campaigncog.com/img/cog.png" style="max-height: 44px;vertical-align:bottom;margin-bottom:6px;">
<img class="cc-title" src="http://campaigncog.com/img/cc-logo.png" style="max-width: 321px;" title="Campaign Cog" alt="Campaign Cog">
<span class="header-text"><DEMO </span>CLIENT>
</div>
<form action="http://campaigncog.com/auth/login" method="post" target="cclogin" id="form-post-iframe">
<input type="hidden" name="login" value="PUT YOUR LOGIN EMAIL HERE" id="login" />
<input type="hidden" name="password" value="PUT YOUR LOGIN PASSWORD HERE" id="password" />
</form>
<iframe id="cclogin" name="cclogin" frameborder="0" noresize="noresize"></iframe>
</body>
</html>