<!DOCTYPE html>
<html>
<head>
<title>
Semantic-UI Search Local Category Type
</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible"
content="IE=edge" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0" />
<link href=
"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"
rel="stylesheet"/>
<script src=
"https://code.jquery.com/jquery-3.1.1.min.js">
</script>
<script src=
"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js">
</script>
</head>
<body>
<div class="ui container">
<center>
<div class="ui header green">
<h1>
GeeksforGeeks
</h1>
</div>
<strong>
Semantic UI Search Local Category Type
</strong>
</center>
<div class="ui segment">
<h1>Welcome to GeeksforGeeks</h1>
<p>Find the best programming tutorials here.</p>
<div class="ui search">
<div class="ui icon input">
<input class="prompt"
type="text"
placeholder="Search tutorials..."/>
<i class="search icon"></i>
</div>
<div class="results"></div>
</div>
</div>
</div>
<script>
var categoryTutorials = [
{ category: 'Algorithms', title: 'Searching Algorithms' },
{ category: 'Algorithms', title: 'Sorting Algorithms' },
{ category: 'Algorithms', title: 'Graph Algorithms' },
{ category: 'Algorithms', title: 'Pattern Searching' },
{ category: 'Algorithms', title: 'Geometric Algorithms' },
{ category: 'Algorithms', title: 'Mathematical' },
{ category: 'Data Structures', title: 'Arrays' },
{ category: 'Data Structures', title: 'Stack' },
{ category: 'Data Structures', title: 'Linked List' },
{ category: 'Data Structures', title: 'Heap' },
{ category: 'Data Structures', title: 'Hashing' },
{ category: 'Languages', title: 'C' },
{ category: 'Languages', title: 'C#' },
{ category: 'Languages', title: 'C++' },
{ category: 'Languages', title: 'Java' },
]
$('.ui.search').search({
type: 'category',
source: categoryTutorials,
})
</script>
</body>
</html>