-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
37 lines (36 loc) · 1.19 KB
/
search.html
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
---
title: 검색 결과
layout: search_template
body_class: "search_template user"
---
<script>
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
$(document).ready(function(){
var txt = "'" + decodeURIComponent(getUrlVars()['query']) + "' - 검색 결과"
var txtwithsitetitle = txt + ' - ' + site_title
$("#page_title").text(txt);
$('meta[name="og:title"]').attr('content', txtwithsitetitle);
document.title = txtwithsitetitle;
});
(function() {
var cx = '010521674026999917260:f2pzega7bfo';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchresults-only></gcse:searchresults-only>