-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomplete.xml
30 lines (27 loc) · 1.06 KB
/
complete.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs height="250" scaling="false" >
<Require feature="google.blog"/>
</ModulePrefs>
<Content type="html"><![CDATA[
<div class='IndeniGadget'></div>
<script type="text/javascript">
var blog;
blog = new google.Blog(function() {
blog.getPostsJson(onLoadFeed);
}, window.name);
function onLoadFeed(data) {
var blogID = data.data.feed.id.$t.split('blog-')[1];
var IndeniLink = document.createElement("a");
IndeniLink.setAttribute("href", "http://www.indeni.com/cp-blog-" + blogID);
var IndeniImage = document.createElement("img");
IndeniImage.setAttribute("src", "http://www.indeni.com/s/Blog-Banner-" + blogID + ".jpg");
IndeniImage.setAttribute("width","320");
IndeniImage.setAttribute("height","250");
IndeniImage.setAttribute("border","0");
IndeniLink.appendChild(IndeniImage);
document.querySelector('.IndeniGadget').appendChild(IndeniLink);
}
</script>
]]></Content>
</Module>