Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added search feature #7

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,32 @@
<meta name="keywords" content="assembly,asm,programming,optimization,optimisation,c,c++,x86,pastebin,opcode,opcodes,dictionary,intel,amd,download,downloads,tutorial" />
<meta name="description" content="x86 assembly tutorials, x86 opcode reference, programming, pastebin with syntax highlighting" />
<meta name="robots" content="index, follow" />
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
crossorigin="anonymous">
</script>
</head>
<body>
<div class="main_container"><h1>x86 Instruction Set Reference</h1>
<p><b>Disclaimer:</b> This page has been preserved from <i>siyobik.com</i>. If you want
to contribute to this site, have a look at <a href="https://github.com/rjeschke/x86.renejeschke.de">GitHub</a></p>
<script type="text/javascript">
function search() {
var pattern = $('#goto-box').val();
var cmds = $('td').children('a');
var rg = new RegExp(pattern,'gi');

for ( var i=0; i<cmds.length;i++ ) {
if ( (rg.exec($(cmds[i]).html())) !== null ) {
window.location.href = $(cmds[i]).attr('href');
return true;
}
}

alert("Opcode \""+pattern+"\" not found!");
}
</script>
<div class="goto-box">
<form onsubmit="search();return false;"><label for="goto-box">Goto: </label>
<input type="text" id="goto-box"></form></div>
<div class="main_container">
<object>
<table class="box" id="instruction_set_reference_main_entries">
<tr>
Expand Down
9 changes: 8 additions & 1 deletion style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ div.indent

div.main_container
{
padding: 2em;
padding-left: 2em;
}

input
Expand Down Expand Up @@ -545,3 +545,10 @@ p.math
{
margin: 1em 0 1em 4em;
}

.goto-box
{
/* display: inline-block;
float: left; */
margin: 2em 0em 1em 6em;
}