Sha256: e16fd69c1ca8be009c0fbdf9be2731414f1caf9b4f1ab97b3cbcbe0bf745a41e

Contents?: true

Size: 1.4 KB

Versions: 61

Compression:

Stored size: 1.4 KB

Contents

controller :workout_window_exercise do
  spots "verb"

  on_entry %{
    context.ep = context.ep;
    context.ui_title = context.ui_title;
    context.image_url = context.image_url;
  }

  action :verb do
    on_entry %{
      var ctx = {
        parent: context,
      }

      if (context.ep.verb_type == "seconds") {
        Embed("exercise_verb_secs", "verb", ctx);
      }
    }

    on "verb_secs_completed", %{
      Goto("presay");
    }
  end

  action :presay do
    on_entry %{

      var ctx = {
        parent: context,
      }
      Embed("workout_window_exercise_presay", "verb", ctx);
    }

    on "start_clicked", %{
      Goto("countdown");
    }
  end

  action :countdown do
    on_entry %{
      Embed("workout_window_exercise_countdown", "verb", {});
    }

    on "countdown_finished", %{
      Goto("verb");
    }
  end

end

#Verb Seconds
####################################################################################################
controller :exercise_verb_secs do
  action :index do
    on_entry %{
      context.seconds = context.parent.ep.seconds;
    }

    every 1.seconds, %{
      if (context.seconds == 0) {
      debugger;
        Raise("verb_secs_completed", {});
        return;
      }

      context.seconds -= 1;

      Send("seconds", context.seconds.toString());
    }
  end
end
####################################################################################################

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
flok-0.0.105 spec/kern/assets/specimin/controller0.rb
flok-0.0.103 spec/kern/assets/specimin/controller0.rb
flok-0.0.102 spec/kern/assets/specimin/controller0.rb
flok-0.0.101 spec/kern/assets/specimin/controller0.rb
flok-0.0.100 spec/kern/assets/specimin/controller0.rb
flok-0.0.99 spec/kern/assets/specimin/controller0.rb
flok-0.0.98 spec/kern/assets/specimin/controller0.rb
flok-0.0.97 spec/kern/assets/specimin/controller0.rb
flok-0.0.96 spec/kern/assets/specimin/controller0.rb
flok-0.0.95 spec/kern/assets/specimin/controller0.rb
flok-0.0.94 spec/kern/assets/specimin/controller0.rb
flok-0.0.93 spec/kern/assets/specimin/controller0.rb
flok-0.0.92 spec/kern/assets/specimin/controller0.rb
flok-0.0.91 spec/kern/assets/specimin/controller0.rb
flok-0.0.90 spec/kern/assets/specimin/controller0.rb
flok-0.0.89 spec/kern/assets/specimin/controller0.rb
flok-0.0.88 spec/kern/assets/specimin/controller0.rb
flok-0.0.87 spec/kern/assets/specimin/controller0.rb
flok-0.0.86 spec/kern/assets/specimin/controller0.rb
flok-0.0.85 spec/kern/assets/specimin/controller0.rb