@@ -217,13 +217,10 @@ function adjust(){
217217 $ ( ".side-pub" ) . css ( "display" , "none" ) ; //can't publish anything
218218
219219 //set publish link
220+ $ ( ".side-pub-link" ) . attr ( "href" , "https://codeyourcloud.com/pub/" + true_id + "/" + id . replace ( "-" , "" ) + ".html" ) ;
220221 if ( cloud_use === "drive" ) {
221- $ ( ".side-pub-link" ) . attr ( "href" , "https://codeyourcloud.com/pub/" + drive . id + "/index.html" ) ;
222222 $ ( ".side-drive-link" ) . attr ( "href" , "https://drive.google.com/file/d/" + current_file + "/view?usp=drivesdk" ) ;
223223 }
224- else if ( cloud_use === "sky" ) {
225- $ ( ".side-pub-link" ) . attr ( "href" , "https://codeyourcloud.com/pub/" + sky . id + "/index.html" ) ;
226- }
227224
228225 if ( mode === "text/javascript" ) {
229226 $ ( ".side-run" ) . css ( "display" , "inline-block" ) ; //can run javascript
@@ -236,12 +233,7 @@ function adjust(){
236233 }
237234 else if ( mode === "text/x-latex" || mode === "text/x-stex" ) {
238235 $ ( ".side-pub" ) . css ( "display" , "inline-block" ) ; ;
239- if ( cloud_use === "drive" ) {
240- $ ( ".side-pub-link" ) . attr ( "href" , "https://codeyourcloud.com/pub/" + drive . id + "/" + current_file + ".pdf" ) ;
241- }
242- else if ( cloud_use === "sky" ) {
243- $ ( ".side-pub-link" ) . attr ( "href" , "https://codeyourcloud.com/pub/" + sky . id + "/" + current_file + ".pdf" ) ;
244- }
236+ $ ( ".side-pub-link" ) . attr ( "href" , "https://codeyourcloud.com/pub/" + true_id + "/" + id . replace ( "-" , "" ) + ".pdf" ) ;
245237 }
246238 else if ( mode === "text/x-markdown" || mode === "gfm" || mode === "markdown" ) {
247239 $ ( ".side-pub" ) . css ( "display" , "inline-block" ) ; //can publish markdown
0 commit comments