2 Call this page when using is marker_name
13 #external-links-list {
14 list-style-type: none;
19 <div id="external-links">
20 <li id="external-links-list"></li>
24 <& /instance/external_link_sources.mas &>
28 * on ready: get the marker props
30 jQuery(document).ready(function() {
36 * Get the marker props for the current marker name
41 url: '/marker/prop/get',
42 data: { marker_name: "<% $marker_name %>" },
43 success: function(response) {
46 for ( let i = 0; i < response.length; i++ ) {
47 props.push(response[i]);
52 error: function(response) {
53 console.log("Could not load marker props");
54 console.log(response);
60 * Generate the external links HTML
61 * @param {Object[]} props A list of marker_name props
63 function renderLinks(props) {
64 let html = "<table style=\"border-spacing: 10px; border-collapse: separate;\">";
65 for ( let i = 0; i < props.length; i++ ) {
68 let type_name = prop.type_name;
69 let marker_name = prop.marker_name;
70 let xref_name = prop.xref_name;
71 html += "<tr><td><a href='" + url + xref_name + "' target='_new'>" + xref_name + "</a><td>" + type_name;
74 jQuery("#external-links-list").html(html);
78 * Generate the link for marker flanking sequence
81 function flankingSeq() {
82 let html = "<ul></ul>";
83 jQuery("#external-links-list").html(html);
84 console.log("Made it here");