-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdomains.html
More file actions
90 lines (88 loc) · 2.83 KB
/
domains.html
File metadata and controls
90 lines (88 loc) · 2.83 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
layout: page
title: Domain Portfolio
header: Domain Portfolio
group: navigation
---
{% include JB/setup %}
<table>
<thead>
<th>Domain</th>
<th>Category</th>
<th style="width:30%;text-align:center">For sale</th>
</thead>
<tbody>
{% for domain in site.data.Domains %}
<tr>
<td><a target="_blank" rel="noreferrer" href="http://{{domain.Domain}}">{{domain.Domain}}</a></td>
<td>{{domain.Category}}</td>
{% if domain.ForSale == 'TRUE' %}
{% assign fsLinks = '' %}
{% if domain.Afternic == 'TRUE' %}
{% assign fsLinks = fsLinks | append: '<a target="_blank" href="https://www.afternic.com/domain/' | append: domain.Domain | append: '">Afternic</a>|' %}
{% endif %}
{% if domain.Sedo == 'TRUE' %}
{% assign fsLinks = fsLinks | append: '<a target="_blank" href="https://sedo.com/search/details/?partnerid=321527&domain=' | append: domain.Domain | append: '">Sedo</a>|' %}
{% endif %}
{% assign fsLinks = fsLinks | split: '|' | join: ' - ' %}
<td style="text-align:center">{{fsLinks}}</td>
{% else %}
<td style="text-align:center">NO</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
<table id="topDomains" style="display:none">
<thead>
<th>Domain</th>
<th style="width:30%;text-align:center">Price</th>
</thead>
<tbody>
</tbody>
</table>
<script type="text/html" id="topDomainsTmpl">
<tr>
<td><a data-href="link" data-content="domain" target="_blank"></a></td>
<td style="text-align:center"><a data-href="link" data-content="price" target="_blank">Sedo</a></td>
</tr>
</script>
<script type="text/javascript">
$(function() {
function populate(feedUrl, tableId) {
$.getJSON("https://query.yahooapis.com/v1/public/yql?callback=?", {
q: "select * from csv where url='" + feedUrl + "'",
format: "json"
},
function (data) {
var rows = data.query.results.row, newRows = [];
for (var i = 0; i < rows.length; i++) {
var cols = rows[i].col0.split('~'), domain = cols[0], price = cols[1];
var row = {
domain: domain,
link: "https://sedo.com/search/details/?partnerid=321527&domain=" + domain,
price: price
};
newRows.push(row);
}
$("#" + tableId + " tbody").loadTemplate($("#topDomainsTmpl"), newRows).parent().slideDown("fast");
});
}
populate("https://sedo.com/txt/topdomains_us.txt", "topDomains");
//populate("https://sedo.com/txt/auctions_us.txt", "auctionDomains");
});
</script>
<script type="text/javascript">
var _sedoq = _sedoq || {};
_sedoq.partnerid = '321527';
_sedoq.locale = 'en-us';
(function () {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//sedo.com/resources/js/plugins/widget.search.get.js';
var f = document.getElementsByTagName('script')[0];
f.parentNode.insertBefore(s, f);
})();
</script>
<div id="sedo-widget-search"></div>