-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathident.html
More file actions
65 lines (65 loc) · 1.55 KB
/
ident.html
File metadata and controls
65 lines (65 loc) · 1.55 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
63
64
65
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.logo {
background: #0000ff;
display: block;
padding-bottom: 56.25%;
position: relative;
}
.logo__container {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.logo-sizer {
width: 100%;
margin: auto;
}
#logo__icon {
color: #fff!important;
fill: #fff!important;
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div class="logo-sizer">
<div class="logo">
<div class="logo__container">
<svg id="logo__icon">
<use xlink:href="ident.svg#ident" />
</svg>
<!--
<object data="ident.svg" id="logo__icon" type="image/svg+xml"></object>
-->
</div>
</div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
function getSubDocument(embedding_element) {
if (embedding_element.contentDocument) {
return embedding_element.contentDocument;
}
else {
var subdoc = null;
try {
subdoc = embedding_element.getSVGDocument();
} catch(e) {}
return subdoc;
}
}
jQuery(document).ready(function() {
var ident = getSubDocument($('#logo__icon')[0]);
$(ident).find('line').each(function(){
console.log(this);
});
});
</script>
</body>
</html>