-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnsearch.html
31 lines (30 loc) · 879 Bytes
/
nsearch.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
<!DOCTYPE html>
<html>
<head>
<title>NSearch Arama Motoru</title>
<link rel="icon" href="logo.png" type="image/x-icon">
<link rel="shortcut icon" href="logo.png" type="image/x-icon">
</head>
<body>
<center>
<a href="index.html"><img src="logo.png" widht=128 height=96></img></a>
</center>
<script async src="https://cse.google.com/cse.js?cx=e37364fc2d08c4af5">
</script>
<div class="gcse-search"></div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var searchResults = document.querySelector('.gsc-results');
if (searchResults) {
searchResults.addEventListener('click', function(e) {
var target = e.target;
if (target.tagName === 'A' && target.href) {
window.open(target.href, '_blank');
e.preventDefault();
}
});
}
});
</script>
</body>
</html>