var jabvfcr_selector; var jabvfcr_iframe = jQuery('.jabvfcr .js-inspector .js-site-preview-iframe')[0].contentWindow; jabvfcr_iframe.addEventListener("load", function() { jabvfcr_openInspector(); }); function jabvfcr_isValidSelector() { jQuery('.jabvfcr .invalid').addClass('dn'); var selector = jQuery('.jabvfcr .js-selector').val(); var isValid = jabvfcr_iframe.jabvfcr_isSelectorValid(selector); if (!isValid) { jQuery('.jabvfcr .invalid').removeClass('dn'); } return isValid; } function jabvfcr_selected(selector) { jQuery('.jabvfcr .js-selector').val(selector); jabvfcr_toggleOptions(); jQuery('.jabvfcr .invalid').addClass('dn'); } function jabvfcr_toggleOptions(hide) { jQuery('.jabvfcr .js-inspector .js-clear').toggleClass('dn', hide); } function jabvfcr_toggleOverlay(show) { jQuery('.jabvfcr .js-inspector')[show ? 'show' : 'hide'](); jQuery('body').css({ overflow: show ? 'hidden' : '' }); } function jabvfcr_updateCurrentSelector(selector) { jQuery('.jabvfcr .js-current-selector').text(selector); } function jabvfcr_getOptions() { var selector = jQuery('.jabvfcr .js-selector').val(); var manipulation = jQuery('.jabvfcr .js-manipulation:checked').val(); var content = tinyMCE.activeEditor && !tinyMCE.activeEditor.hidden ? tinyMCE.activeEditor.getContent() : jQuery('#content').val(); return { selector:selector, manipulation: manipulation, content: content }; } function jabvfcr_resetSelector() { jabvfcr_iframe.jabvfcr_resetSelector(); jQuery('.jabvfcr .js-selector').val(''); } function jabvfcr_openInspector() { jQuery('.jabvfcr .js-loading-screen').remove(); var selector = jQuery('.jabvfcr .js-selector').val(); if (selector && jabvfcr_iframe.jabvfcr_isSelectorValid(selector)) { jabvfcr_iframe.jabvfcr_updateSelector(selector); jabvfcr_toggleOptions(false); } jabvfcr_toggleOverlay(true); } function jabvfcr_saveSelector() { if (!jabvfcr_isValidSelector()) { return; } var data = { _ajax_nonce: jabvfcr_ajax.nonce, action: 'jabvfcr_save_selector', selector: jQuery('.jabvfcr .js-selector').val(), manipulation: jQuery('.jabvfcr .js-manipulation:checked').val(), content: tinyMCE.activeEditor && !tinyMCE.activeEditor.hidden ? tinyMCE.activeEditor.getContent() : jQuery('#content').val() }; jQuery.post(jabvfcr_ajax.url, data).then(function() { alert('Settings updated.'); }).fail(function() { alert('There was an unexpected error. Please try again.'); }); } (function ($) { jQuery( document ).on( 'tinymce-editor-init', function( event, editor ) { tinyMCE.activeEditor.onKeyUp.add(function(){ jabvfcr_iframe.jabvfcr_updateSelector(); }); tinyMCE.activeEditor.onChange.add(function(){ jabvfcr_iframe.jabvfcr_updateSelector(); }); }); jQuery('#content').keyup(function(){ jabvfcr_iframe.jabvfcr_updateSelector(); }); jQuery('#content').change(function(){ jabvfcr_iframe.jabvfcr_updateSelector(); }); $('.jabvfcr .js-inspector .js-clear').click(function(e) { jabvfcr_resetSelector(); jabvfcr_toggleOptions(); }); $('.jabvfcr .js-close-inspector').click(function(e) { e.preventDefault(); jabvfcr_toggleOverlay(false); }); $('.jabvfcr .js-toggle-advanced-options').click(function(e) { e.preventDefault(); $('.js-advanced-options').toggleClass('dn'); }); $('.jabvfcr form .js-submit').click(function(e) { e.preventDefault(); jabvfcr_saveSelector(); }); $('.jabvfcr form .js-selector').blur(function() { if (jabvfcr_isValidSelector()) { var selector = jQuery('.jabvfcr .js-selector').val(); jabvfcr_iframe.jabvfcr_updateSelector(selector); } }); $('.jabvfcr form .js-manipulation').change(function() { jabvfcr_iframe.jabvfcr_updateSelector(); }); $('.jabvfcr .js-open-inspector').click(function() { jabvfcr_openInspector(); }); })(jQuery); {"id":1164,"date":"2023-09-10T15:43:53","date_gmt":"2023-09-10T15:43:53","guid":{"rendered":"https:\/\/ghorbaghe.me\/?p=1164"},"modified":"2023-09-10T15:44:01","modified_gmt":"2023-09-10T15:44:01","slug":"how-lab-diamonds-could-make-the-industry-more-ethical-lab-diamond-engagement-rings","status":"publish","type":"post","link":"https:\/\/ghorbaghe.me\/how-lab-diamonds-could-make-the-industry-more-ethical-lab-diamond-engagement-rings\/","title":{"rendered":"How Lab Diamonds Could Make the Industry More Ethical: Lab Diamond Engagement Rings"},"content":{"rendered":"\n
The diamond industry has long been criticized for its ethical practices. Mining diamonds can have a negative impact on the environment and the people who live in diamond-producing regions. Lab-grown diamonds, on the other hand, are created in a laboratory and do not have the same ethical concerns.<\/p>\n\n\n\n
The mining of diamonds can have a number of negative environmental impacts. It can pollute water supplies, destroy forests, and displace people from their homes. The mining of diamonds can also be dangerous for workers, who are often exposed to hazardous chemicals and dust.<\/p>\n\n\n\n
In addition to the environmental impacts, the mining of diamonds can also have negative social impacts. In some cases, diamond mining has been linked to human rights abuses, such as forced labor and child labor. The diamond industry has also been accused of funding conflict in some countries.<\/p>\n\n\n\n
Lab-grown diamonds are created in a laboratory, so they do not have the same ethical concerns as mined diamonds. They do not pollute the environment, displace people, or endanger workers. Lab-grown diamonds are also conflict-free, meaning that they are not mined in areas where there is conflict.<\/p>\n\n\n\n
The popularity of lab-grown diamonds is growing. In 2021, the global market for lab-grown diamonds was worth $2.1 billion, and it is expected to reach $10 billion by 2028. The growing popularity of lab-grown diamonds is due to a number of factors, including their ethical benefits and their lower price.<\/p>\n\n\n\n
Lab-grown diamonds are a popular choice for engagement rings. They are often seen as a more ethical and affordable alternative to mined diamonds. There are a number of different brands of lab-grown diamonds available, so you can find one that fits your budget and your style.<\/p>\n\n\n\n
Lab-grown diamonds have the potential to make the diamond industry more ethical. They do not have the same environmental or social impacts as mined diamonds, and they are often more affordable. As the popularity of lab-grown diamonds continues to grow, they could help to make the diamond industry a more sustainable and ethical one.<\/p>\n\n\n\n
<\/p>\n\n\n\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
The diamond industry has long been criticized for its ethical practices. Mining diamonds can have…<\/p>\n","protected":false},"author":1,"featured_media":1165,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1164","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shopping"],"yoast_head":"\n