');
html=html.replace(patterna,'
' + ucfirst(title) + ' ');
let patternb = new RegExp("\\.\\.\\. @" + lcode + "@", 'g');
//html=html.replace(patternb,'...
' + title + '
');
html=html.replace(patternb,'...
' + title + ' ');
let patternc = new RegExp("vs\\. @" + lcode + "@", 'g');
//html=html.replace(patternc,'vs.
' + title + '
');
html=html.replace(patternc,'vs.
' + title + ' ');
let patternd = new RegExp("Cf\\. @" + lcode + "@", 'g');
//html=html.replace(patternd,'Cf.
' + title + '
');
html=html.replace(patternd,'Cf.
' + title + ' ');
let patterne = new RegExp("cf\\. @" + lcode + "@", 'g');
//html=html.replace(patterne,'cf.
' + title + '
');
html=html.replace(patterne,'cf.
' + title + ' ');
let patternf = new RegExp("E\\.g\\. @" + lcode + "@", 'g');
//html=html.replace(patternf,'E.g.
' + title + '
');
html=html.replace(patternf,'E.g.
' + title + ' ');
let patterng = new RegExp("e\\.g\\. @" + lcode + "@", 'g');
//html=html.replace(patterng,'e.g.
' + title + '
');
html=html.replace(patterng,'e.g.
' + title + ' ');
let patternh = new RegExp("i\\.e\\. @" + lcode + "@", 'g');
//html=html.replace(patternh,'i.e.
' + title + '
');
html=html.replace(patternh,'i.e.
' + title + ' ');
let patterni = new RegExp("\\. @" + lcode + "@", 'g');
//html=html.replace(patterni,'.
' + ucfirst(title) + '
');
html=html.replace(patterni,'.
' + ucfirst(title) + ' ');
let patternj = new RegExp("
@" + lcode + "@", 'g');
//html=html.replace(patternj,'
' + ucfirst(title) + '
');
html=html.replace(patternj,'
' + ucfirst(title) + ' ');
let patternk = new RegExp("@" + lcode + "@", 'g');
//html=html.replace(patternk,'
' + title + '
');
html=html.replace(patternk,'
' + title + ' ');
});
$(this).html(html);
});
$(".chemimg").each(function() {
let size=$(".notecard").width();
let file=$(this).html();
let data=jdata.chemimg[file];
if($(this).hasClass("row")) {
let ratio = size/data.width;
let cols, offset;
if(ratio 1 && ratio 2 && ratio 3 && ratio ');
} else {
$(this).html('
');
}
});
$("#notecard").on("click",".term",function(e) {
let code = $(this).attr("data-code");
// TODO: add logging of clicks here
let linkout = '/terms/view/' + code;
if (e.metaKey||e.ctrlKey) {
window.open(linkout);
} else {
location.assign(linkout);
}
});
$("#github").on("click", function () {
let tcode=jdata.code;
let ttitle='nitriles';
let body=$('#ghbody').val();
let type=$('#error option:selected').val();
let user=$('#user').val();
let userid=$('#userid').val();
// create the POST JSON array...
let post={
title: ttitle + " (" + tcode + ")",
body: body + " - (" + user + ")",
assignees: ["stuchalk"],
milestone: 1,
labels: [type]
};
if(type === "" || (type!=="term - good" && body==="")) {
alert('Please select the type of error');
return false;
} else if(type==="term - good") {
// add to the feedback database
post.userid=userid;
post.code=tcode;
post.body="Term verified by " + user;
$.ajax({
type: 'POST',
dataType: 'json',
context: document.body,
url: 'https://goldbook.iupac.org//admin/feedback',
data: post,
success: function (data, textStatus, XHR) {
let message="";
if(data.response==="success") {
message="Feedback sent. Thanks!";
alert(message);
location.reload();
} else {
message="Error saving your submission. Please report to stu@goldbook.iupac.org.";
alert(message);
}
return false;
},
error: function (data, textStatus, XHR) {
alert("AJAX error. Please contact stu@goldbook.iupac.org.");
return false;
}
});
} else {
// send issue to GitHub and then add to the feedback database
$.ajax({
type: 'POST',
dataType: 'json',
context: document.body,
url: 'https://api.github.com/repos/iupac/Gold-Book-Website-v2/issues?access_token=1c29903ecd25e0e87273857a247b4714abb4c08d',
data: JSON.stringify(post),
success: function (data, textStatus, XHR) {
// send data to database
post.userid=userid;
post.code=tcode;
post.issue=data["number"];
// on success send add to the feedback database
$.ajax({
type: 'POST',
dataType: 'json',
context: document.body,
url: 'https://goldbook.iupac.org//admin/feedback',
data: post,
success: function (data, textStatus, XHR) {
let message;
if(data.response === "success") {
message="Feedback sent. Thanks!";
alert(message);
window.location.reload(); // reloads from server not cache
} else {
message="Error saving your submission. Please report to stu@goldbook.iupac.org.";
alert(message);
}
return false;
},
error: function (data, textStatus, XHR) {
alert("Communication error. Please report to stu@goldbook.iupac.org.");
return false;
}
});
return false;
},
error: function (data, textStatus, XHR) {
alert("Error saving your submission. Please contact stu@goldbook.iupac.org.");
return false;
}
});
return false;
}
});
$("#errors").hover(
function () { $("#fform").hide();$("#fback").show(); },
function () { $("#fback").hide();$("#fform").show(); }
);
$('#copy').on('click',function() {
let doi = $("#doi").text();
navigator.clipboard.writeText(doi);
});
$('.replacement').on('blur', function() {
// update the 'displayed' field in the 'links' table with value to display for link
let code=$(this).attr('code');
let value=$(this).attr('val');
let text=$(this).text();
$.ajax({
type: 'POST',
dataType: "text",
context: document.body,
url: 'https://goldbook.iupac.org/links/updatefield/displayed',
data: { code: code,value: value, text: text },
success: function (data, textStatus, XHR) {
// send data to database
if(data=="error") {
alert("Error saving to the DB.");
} else {
alert('Done!');
//window.location.reload(true); // true reloads from server not cache
}
return false;
},
error: function (data, textStatus, XHR) {
alert("Error saving the change.");
return false;
}
});
return false;
});
$('.chemimage').mousemove(function(e) {
let imageid=$(this).attr('imageid');
let image=$('#image');
let popup=$('#popup');
alert(imageid);
image.attr('src','../../../img/inline/' + imageid + 'png');
popup.offset({
top: e.pageY - popup.outerHeight(),
left: e.pageX - popup.outerHeight()
});
popup.show();
}).mouseleave(function () {
let popup=$('#popup');
popup.hide();
});
});
Copy
https://doi.org/10.1351/goldbook.N04151
Compounds having the structure
RC≡N ; thus
C -substituted derivatives of hydrocyanic acid,
HC≡N . In systematic nomenclature, the suffix nitrile denotes the triply bound
≡N atom, not the carbon atom attached to it.
Source: PAC, 1995,
67 , 1307. (
Glossary of class names of organic compounds and reactivity intermediates based on structure (IUPAC Recommendations 1995) ) on page 1350 [
Terms ] [
Paper ]