Giter VIP home page Giter VIP logo

contao-rocksolid-theme-assistant's People

Contributors

ausi avatar rabauss avatar woerndl avatar

Watchers

 avatar  avatar

Forkers

rabauss

contao-rocksolid-theme-assistant's Issues

FR: Trigger an event of the input when color is changed

I woud like to watch the inputs for color values and react when the value is changed by the colorpicker (by user is no problem). Unfortunately no event gets triggered on inputs when they are changed by JavaScript, only when changed by the user.

Maybe you can trigger an event on the input when it gets changed by the colorpicker.

onComplete: function(color){
$("ctrl_' . $dc->field . '").value = color.hex.replace("#", "");
}

Here is my code I'm working with to color the fields.

colorRSTAInputFields = function(){
  var colorValueElements = $$('.tl_help.tl_tip > i');

  Array.each(colorValueElements, function(item, i){
    var colorValue = item.get('text').match(/#\b[0-9A-F]{6}\b/i);

    if(colorValue){
      var colorInput = item.getParents('.wizard.widget').getFirst('input.tl_text');

      colorInput.addEvent('input', function(){
        this.setStyles({
          'background-image': 'linear-gradient(to right, transparent, transparent 50%, #' + this.value + ' 50%)'
        });
      });

      colorInput.setStyles({
        'background-image': 'linear-gradient(to right, transparent, transparent 50%, ' + colorValue + ' 50%)'
      });
    }
  });
}
colorRSTAInputFields();
window.addEvent('ajax_change', colorRSTAInputFields);

PHP 7 Error: Function name must be a string

Fatal error: Uncaught exception Error with message Function name must be a string thrown in system/modules/rocksolid-theme-assistant/src/MadeYourDay/Contao/ThemeAssistantDataContainer.php on line 49

templates/eightytwenty/fe_page.html5.base deprecated in 1.8.7?

Hallo Martin, ich bin hier gerade in nem BE gelandet wo so eine Datei im Template-Ordner liegt.
templates/eightytwenty/fe_page.html5.base

Die ist bei dem neuen Theme 80/20 1.8.7 für Contao 4.4/7 nicht dabei. Kann ich diese Datei einfach löschen?

ps Hatte ein paar Probleme bis ich im BE die main.css.base beim Assistant überhaupt angezeigt bekam. Nach einer Synchronisierung der Dateien ging es dann aber.

Erweiterung für SASS-Datein

Der Assistent prpft auf html(5)- und css-Dateien....

Kann das nicht auch auf scss-Dateien erweitert werden, die im Prinzip wie css-Dateien geparsed werden könnten?
Soweit ich das sehe, müssten nur im onload- und onsubmit-callback eine Zeile bei der ybestimmumg des type angepasst werden:

alt:
if (substr($dc->id, -9, 4) === '.css') {

neu:
if (substr($dc->id, -9, 4) === '.css' || substr($dc->id, -10, 5) === '.scss') {

.htaccess

bitte für contao 3.x anpassen auf

<IfModule !mod_authz_core.c>
  Order allow,deny
  Allow from all
</IfModule>
<IfModule mod_authz_core.c>
  Require all granted
</IfModule>

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.