Skip to content

Commit

Permalink
空白類の変更のみ。スペース→タブ。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Dec 13, 2024
1 parent 480ad4d commit 18a7b1b
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 104 deletions.
6 changes: 3 additions & 3 deletions petitnote/template/basic/continue.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<style>
/* index.cssを更新しない人がいるかもしれないためインラインでも記述 */
#span_cont_paint_same_thread {
display: none;
display: none;
}
<?php if(!$pch_exists):?>
#span_hide_animation{
display: none;
#span_hide_animation{
display: none;
}
<?php endif;?>
</style>
Expand Down
2 changes: 1 addition & 1 deletion petitnote/template/basic/misskey_server_selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
margin: 3px 0;
}
input.post_share_button {
width: 100%;
width: 100%;
margin: 8px 0 0;
}
:not(input){
Expand Down
4 changes: 2 additions & 2 deletions petitnote/template/basic/misskey_success.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<title><?=h($boardname)?></title>
<style>
.success {
font-size: 24px;
margin: 16px 0 0 0;
font-size: 24px;
margin: 16px 0 0 0;
}
</style>
</head>
Expand Down
36 changes: 18 additions & 18 deletions petitnote/template/basic/paint_klecks.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,27 +140,27 @@
//この箇所はさとぴあが作成したMIT Licenceのコードです。
<?php if($rep):?>
const repData = () => {
// 画像差し換えに必要なフォームデータをセット
const formData = new FormData();
formData.append("mode", "picrep");
formData.append("no", "<?= h($no)?>");
formData.append("id", "<?= h($id)?>");
formData.append("enc_pwd", "<?= h($pwd)?>");
// 画像差し換えに必要なフォームデータをセット
const formData = new FormData();
formData.append("mode", "picrep");
formData.append("no", "<?= h($no)?>");
formData.append("id", "<?= h($id)?>");
formData.append("enc_pwd", "<?= h($pwd)?>");
formData.append("repcode", "<?= h($repcode)?>");
formData.append("paint_picrep", true);

// 画像差し換え
fetch("./", {
method: 'POST',
// 画像差し換え
fetch("./", {
method: 'POST',
mode: 'same-origin',
headers: {
'X-Requested-With': 'klecks'
,
},
body: formData
})
.then(response => {
if (response.ok) {
body: formData
})
.then(response => {
if (response.ok) {
if (response.redirected) {
return window.location.href = response.url;
}
Expand All @@ -170,12 +170,12 @@
return window.location.href="./?mode=paintcom";
}
})
}
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
}
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
return window.location.href="./?mode=paintcom";
});
});
}
<?php endif;?>
// (c)satopian MIT Licence ここまで
Expand Down
74 changes: 37 additions & 37 deletions petitnote/template/basic/paint_neo.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,46 +64,46 @@
});
//NEOの画像受信後の処理と画面移動
Neo.handleExit = ()=>{
<?php if($rep):?>
// 画像差し換えに必要なフォームデータをセット
const formData = new FormData();
formData.append("mode", "picrep");
formData.append("no", "<?= h($no)?>");
formData.append("id", "<?= h($id)?>");
formData.append("enc_pwd", "<?= h($pwd)?>");
formData.append("repcode", "<?= h($repcode)?>");
formData.append("paint_picrep", true);
<?php if($rep):?>
// 画像差し換えに必要なフォームデータをセット
const formData = new FormData();
formData.append("mode", "picrep");
formData.append("no", "<?= h($no)?>");
formData.append("id", "<?= h($id)?>");
formData.append("enc_pwd", "<?= h($pwd)?>");
formData.append("repcode", "<?= h($repcode)?>");
formData.append("paint_picrep", true);

// 画像差し換え
fetch("./", {
method: 'POST',
mode: 'same-origin',
headers: {
'X-Requested-With': 'PaintBBS'
,
},
body: formData
})
.then(response => {
if (response.ok) {
// 画像差し換え
fetch("./", {
method: 'POST',
mode: 'same-origin',
headers: {
'X-Requested-With': 'PaintBBS'
,
},
body: formData
})
.then(response => {
if (response.ok) {

if (response.redirected) {
return window.location.href = response.url;
}
response.text().then((text) => {
if (text.startsWith("error\n")) {
console.log(text);
return window.location.href = "./?mode=paintcom";
if (response.redirected) {
return window.location.href = response.url;
}
})
}
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
return window.location.href = "./?mode=paintcom";
});
response.text().then((text) => {
if (text.startsWith("error\n")) {
console.log(text);
return window.location.href = "./?mode=paintcom";
}
})
}
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
return window.location.href = "./?mode=paintcom";
});
<?php else:?>
return window.location.href = "./?mode=paintcom";
return window.location.href = "./?mode=paintcom";
<?php endif;?>
}

Expand All @@ -116,7 +116,7 @@
<span class="nts_radiowrap"><?php if($en):?>Tool<?php else:?>ツールを<?php endif;?>
<input type="radio" name="1" id="1" onclick="Neo.setToolSide(true)" class="nts_radio"><label class="ntslabel" for="1"><?php if($en):?>Left<?php else:?>左へ<?php endif;?></label>
<input type="radio" name="1" id="2" onclick="Neo.setToolSide(false)" checked="checked" class="nts_radio"><label class="ntslabel" for="2"><?php if($en):?>Right<?php else:?>右へ<?php endif;?></label>
</span>
</span>
</div>
</nav>
</header>
Expand Down
82 changes: 41 additions & 41 deletions petitnote/template/basic/paint_tegaki.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
<body>
<script>
function showAlert(text) {
if (Tegaki.saveReplay) {
Tegaki.replayRecorder.start();
}
alert(text);
if (Tegaki.saveReplay) {
Tegaki.replayRecorder.start();
}
alert(text);
}
Tegaki.open({
// when the user clicks on Finish
onDone: function() {
onDone: function() {

//Petit Note 2021-2024 (c)satopian MIT Licence
//この箇所はさとぴあが作成したMIT Licenceのコードです。
Expand Down Expand Up @@ -83,26 +83,26 @@
const repData = () => {

// 画像差し換えに必要なフォームデータをセット
const formData = new FormData();
formData.append("mode", "picrep");
formData.append("no", "<?= h($no)?>");
formData.append("id", "<?= h($id)?>");
formData.append("enc_pwd", "<?= h($pwd)?>");
const formData = new FormData();
formData.append("mode", "picrep");
formData.append("no", "<?= h($no)?>");
formData.append("id", "<?= h($id)?>");
formData.append("enc_pwd", "<?= h($pwd)?>");
formData.append("repcode", "<?= h($repcode)?>");
formData.append("paint_picrep", true);

// 画像差し換え
fetch("./", {
method: 'POST',
// 画像差し換え
fetch("./", {
method: 'POST',
mode: 'same-origin',
headers: {
'X-Requested-With': 'tegaki'
,
},
body: formData
})
.then(response => {
if (response.ok) {
body: formData
})
.then(response => {
if (response.ok) {
if (response.redirected) {
Tegaki.hide();//「このサイトを離れますか?」を解除
return window.location.href = response.url;
Expand All @@ -114,19 +114,19 @@
return window.location.href="./?mode=paintcom";
}
})
}
})
.catch(error => {
}
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
Tegaki.hide();//「このサイトを離れますか?」を解除
return window.location.href="./?mode=paintcom";
});
});
}
<?php endif;?>

Tegaki.flatten().toBlob(
function(blob) {
// console.log(blob);
Tegaki.flatten().toBlob(
function(blob) {
// console.log(blob);
const tgkr = Tegaki.replayRecorder ? Tegaki.replayRecorder.toBlob() : null;
const formData = new FormData();
let DataSize = 1000;
Expand All @@ -144,31 +144,31 @@
formData.append("stime", <?=time();?>);
formData.append("resto", "<?=h($resto)?>");
postData("./?mode=saveimage&tool=tegaki", formData);
},
'image/png'
);
},
// (c)satopian MIT Licence ここまで
},
'image/png'
);
},
// (c)satopian MIT Licence ここまで

// when the user clicks on Cancel
onCancel: function() {
console.log('Closing...')
},
// initial canvas size
width: <?=h($picw)?>,
height: <?=h($pich)?>,
saveReplay: <?php if($imgfile):?>false<?php else:?>true<?php endif;?>,
// when the user clicks on Cancel
onCancel: function() {
console.log('Closing...')
},
// initial canvas size
width: <?=h($picw)?>,
height: <?=h($pich)?>,
saveReplay: <?php if($imgfile):?>false<?php else:?>true<?php endif;?>,

});

<?php if($imgfile):?>
var self = Tegaki;
var image = new Image();
image.onload = function() {
var image = new Image();
image.onload = function() {
self.activeLayer.ctx.drawImage(image, 0, 0);
TegakiLayers.syncLayerImageData(self.activeLayer);
};
image.src = "<?=h($imgfile)?>"; // image URL
};
image.src = "<?=h($imgfile)?>"; // image URL
<?php endif;?>

</script>
Expand Down
4 changes: 2 additions & 2 deletions petitnote/template/basic/set_share_server.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
margin: 3px 0;
}
input.post_share_button {
width: 100%;
margin: 8px 0 0;
width: 100%;
margin: 8px 0 0;
}
:not(input){
-moz-user-select: none;
Expand Down

0 comments on commit 18a7b1b

Please sign in to comment.