PageSourceSearch

https://www.rc-crispr.com/static/js/global.js

js rc-crispr.com collected 2026-10-08 06:54:46 UTC 1,461 bytes, 45 lines download raw bytes

1function showTip(msg){
2    let element = `
3    <div class="prompt_modal">
4        <div class="title">
5            <span>Tips</span>
6            <span onclick="$('.prompt_modal').hide()"> ✖ </span>
7        </div>
8        <div class="content">
9            <div class="tip">
10                <p>${msg}</p>
11                <div class="button">
12                    <a href="javascript:;" onclick="$('.prompt_modal').hide()">Got it</a>
13                </div>
14            </div>
15            <div class="img"><img src="/static/images/detail/jixiangwu.png" alt=""></div>
16        </div>
17    </div>
18    `
19    if ($(".prompt_modal").length){
20        $(".prompt_modal .tip>p").text(msg)
21    }else{
22        $("body").append(element)
23    }
24    $(".prompt_modal").show()
25}
26
27// if (['/result', "/knockin/pm_detail"].includes(location.pathname)){
28//     showTip("Mar 21 2023: System failure, some genes may not be able to obtain gRNA. We are maintaining it as sonn as possible.")
29// }
30
31
32// 通用图片点击放大预览  eg: <div class="img g_zoom_img"><img src="" alt=""></div>
33$(function(){
34    $("body").on("click", ".g_zoom_img", function(){
35        let html = $(this).html()
36        
37        if ($(".g_fixed_zoom_img").length === 0){
38            $("body").append(`<div class="g_fixed_zoom_img" onclick="$(this).hide()" style="display: none;"><div></div></div>`)
39        }
40        $(".g_fixed_zoom_img>div").html(html)
41        $(".g_fixed_zoom_img").show()
42    })
43    
44})
45

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.