dpaste and warning upon leaving page

ixid via Digitalmars-d digitalmars-d at puremagic.com
Thu May 12 09:06:32 PDT 2016


On Wednesday, 11 May 2016 at 11:27:44 UTC, nazriel wrote:
> On Tuesday, 10 May 2016 at 16:39:05 UTC, Anonymouse wrote:
>> I just had a PEBCAK moment where I was composing a large-ish 
>> snippet on dpaste, then accidentally left the page by clicking 
>> the back button on my mouse. Going back to the page I see my 
>> changes were lost.
>>
>> Could we maybe add a warning when leaving the page if the 
>> content has been changed? I think it's the onbeforeunload 
>> event, but I don't know javascript well.
>>
>> http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onbeforeunload_dom
>
>
> Good idea.
> I've added it to TODO list here
>
> https://github.com/nazriel/dpaste-frontend/issues/3

Could the layout be modified for mobile screens so the compile 
button appears close to the text entry box? At present the 
compiler options box goes below the options box and requires a 
fair bit of scrolling just to hit the compile button. dpaste is a 
really nice way of playing with minor bits of code on mobile.


More information about the Digitalmars-d mailing list