24 lines
652 B
JavaScript
24 lines
652 B
JavaScript
/*
|
|
Graphictoria 5 (https://gtoria.net)
|
|
Copyright © XlXi 2022
|
|
*/
|
|
|
|
import $ from 'jquery';
|
|
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
|
|
import Comments from '../components/Comments';
|
|
import PurchaseButton from '../components/PurchaseButton';
|
|
|
|
const purchaseId = 'gt-purchase-button';
|
|
const commentsId = 'gt-comments'; // XlXi: Keep this in sync with the Comments component.
|
|
|
|
$(document).ready(function() {
|
|
if (document.getElementById(commentsId)) {
|
|
render(<Comments />, document.getElementById(commentsId));
|
|
}
|
|
if (document.getElementById(purchaseId)) {
|
|
render(<PurchaseButton />, document.getElementById(purchaseId));
|
|
}
|
|
}); |