Coder Social home page Coder Social logo

Comments (7)

BrianHepler avatar BrianHepler commented on August 27, 2024

Hmm. Displaying the last photo taken shouldn't be a problem. There already is an email function that will send the photo along as soon as it is taken. I'm not sure what is gained by sending that photo again.

I'll look into adding a notification to display the last photo taken.

from mmm-selfieshot.

Alexandre-Venditti69 avatar Alexandre-Venditti69 commented on August 27, 2024

yes your module directly send by email. what I wanted to suggest is after displaying the photo result, open a popup that asks if they want to validate the photo => notification to sendmail or
Re take the photo again => shoot function.

from mmm-selfieshot.

Alexandre-Venditti69 avatar Alexandre-Venditti69 commented on August 27, 2024

La fin de votre module est if (showing) rd.classList.toggle("shown"); setTimeout(()=>{ if (showing) rd.classList.toggle("shown"); if (showing) con.classList.toggle("shown"); }, this.config.resultDuration);

Faire quelque chose comme :

if (showing) rd.classList.toggle("shown"); If ..{this.postLastPhoto(result); } setTimeout(()=>{ if (showing) rd.classList.toggle("shown"); if (showing) con.classList.toggle("shown"); }, this.config.resultDuration); postLastPhoto: function(result) {..
And this will open a window popup to chose what do you want.

from mmm-selfieshot.

Alexandre-Venditti69 avatar Alexandre-Venditti69 commented on August 27, 2024

Cela viendrai à la fin de votre module :
postLastPhoto : function () { var showing = true; var wrapper = document.createElement("div"); //wrapper.innerHTML = "Choose"; var icon = document.createElement('div'); icon1.id= "RETRY"; icon2.id= "PRINT"; icon1.style.backgroundImage = "url(/...)"; icon2.style.backgroundImage = "url(/...)"; icon1.classList.add("busy"); icon2.classList.add("busy"); icon1.onclick = (event)=> { event.sendsocketNotification(SELFIE_RETRY)); }; icon2.onclick = (event)=> { event.sendsocketNotification(SELFIE_PRINT); wrapper.appendChild(icon1); wrapper.appendChild(icon2); }; else wrapper.className = "" return wrapper } wrapper.appendChild(icon) } printPhoto : fonction () { sendMail: function(filepath) }

from mmm-selfieshot.

Alexandre-Venditti69 avatar Alexandre-Venditti69 commented on August 27, 2024

Et ajoutant ceci également :
socketNotificationReceived: function(noti, payload) { if (noti == "SHOOT_RESULT") { this.postShoot(payload); } if (noti == "WEB_REQUEST") { this.shoot(payload); } if (noti == "SELFIE_AFTER") { this.postLastPhoto(payload); } if (noti == "SELFIE_RETRY") { this.shoot(payload); } if (noti == "SELFIE_PRINT") { this.printPhoto(payload) },

from mmm-selfieshot.

BrianHepler avatar BrianHepler commented on August 27, 2024

Huh. Interesting work. If you roll that into a pull request, I can add it to the main branch.

from mmm-selfieshot.

Alexandre-Venditti69 avatar Alexandre-Venditti69 commented on August 27, 2024

Huh. Interesting work. If you roll that into a pull request, I can add it to the main branch.

I'm going to work on this most seriously, and I'm coming back to share my work with you. Thank you for your support.

from mmm-selfieshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.